Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function for populate values REF, INV, PO
function addPackageLineItem($input)
{
$packageLineItem = array
(
'SequenceNumber' => 1,
'GroupPackageCount' => 1,
'Weight' => array
(
'Value' => $input['Weight'],
'Units' => 'LB'
),
'Dimensions' => array
(
'Length' => $input['Length'],
'Width' => $input['Width'],
'Height' => $input['Height'],
'Units' => 'IN'
),
'CustomerReferences' => array(
'0' => array('CustomerReferenceType' => 'CUSTOMER_REFERENCE','Value' => 'CR1234'),
'1' => array('CustomerReferenceType' => 'INVOICE_NUMBER','Value' => 'IV1234'),
'2' => array('CustomerReferenceType' => 'P_O_NUMBER','Value' => 'PO1234')
)
);
return $packageLineItem;
} // end of function addPackageLineItem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.