JeremyDunn/php-fedex-api-wrapper

How to set PurchaseOrder in label

smitakartit opened this issue · 3 comments

I got function setPurchaseOrderNumber(). but how to impliment this

I am not sure where you see the setPurchaseOrderNumber function. Here's how I do it, I believe I got this code from samples.

$refPO = new ComplexType\CustomerReference();

$refPO ->setCustomerReferenceType('P_O_NUMBER')
  ->setValue('123456');

...
//Reference numbers are assigned to the first ITEM

$item = new ComplexType\RequestedPackageLineItem();

$item
	->setWeight($itemWeight)
	->setCustomerReferences([$refPO])
	->setInsuredValue($itemValue)
	->setSequenceNumber($item_seq);

This issue is stale because it has been open for 30 days with no activity.

This issue was closed because it has been inactive for 14 days since being marked as stale.