- Nasir Khan
- PowerBuilder
- Sunday, 24 May 2020 10:17 AM UTC
Hi All,
Can someone please show me how I would generate JSON in the below format?
I'm not sure on how to create the "shipments" array of objects
Thanks,
Nas
{
"shipments":[
{
"shipment_reference":"XYZ-001-01",
"customer_reference_1":"Order 001",
"customer_reference_2":"SKU-1, SKU-2, SKU-3",
"email_tracking_enabled":true,
"from":{
"name":"John Citizen",
"lines": [
"1 Main Street"
],
"suburb": "MELBOURNE",
"state": "VIC",
"postcode": "3000",
"phone": "0401234567",
"email":"john.citizen@citizen.com"
},
"to":{
"name":"Jane Smith",
"business_name":"Smith Pty Ltd",
"lines":[
"123 Centre Road"
],
"suburb":"Sydney",
"state":"NSW",
"postcode":"2000",
"phone":"0412345678",
"email":"jane.smith@smith.com"
},
}
]
}
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.