The following curl can be used to connect the postman with Tracktrace using API and sync the shipment to Track trace.
Approve sales order
curl --location 'https://api.test.tracktraceweb.com/2.0/transactions/sales/{transaction_UUID}/approve' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: {API Key}' \
--form 'is_ship_transaction="true"' \
--form 'is_approve_shipment="true"'
Response:
{ “transaction_uuid”: “string”, “shipment_uuid”: “string” }
GET SO Line items UUID
curl --location --request GET 'https://api.test.tracktraceweb.com/2.0/transactions/sale/{transaction_UUID}' \
--header 'Authorization: {API Key}' \
--form 'transaction_date="2023-04-25"' \
--form 'line_items="[{\"product_uuid\" : \"{product_uuid}\", \"quantity\" : 2}]"' \
--form 'billing_address_uuid="{billing_address_uuid}"' \
--form 'ship_from_address_uuid="{ship_from_address_uuid}"' \
--form 'ship_to_address_custom_recipient_name="2SRX"' \
--form 'ship_to_address_custom_line1="1211 Arion Pkwy"' \
--form 'ship_to_address_custom_country_code="USA"' \
--form 'sold_by_address_custom_recipient_name="Nationwide"' \
--form 'sold_by_address_custom_line1="1211 Arion Pkwy"' \
--form 'sold_by_address_custom_country_code="USA"' \
--form 'transaction_uuid="{transaction_UUID}"'
list storage area
curl --location 'https://api.test.tracktraceweb.com/2.0/locations/{location_uuid}/storage_areas' \
--header 'Authorization: {API Key}'
Response:
{
"nb_total_results": 1,
"records_per_page": 100,
"nb_pages": 1,
"current_page": 1,
"sorting_col_name": "created_on",
"sorting_col_is_asc": true,
"data": [
{
"uuid": "string",
"parent_area_uuid": null,
"created_on": "2023-03-03 13:48:20.612094+00",
"gs1_id": null,
"name": "Main Storage",
"code": "string",
"is_storage_conditions_verification_disabled": true,
"is_active": true,
"is_default": true
}
]
}
Get storage area shelf
curl --location 'https://api.test.tracktraceweb.com/2.0/locations/{Location_uuid}/storage_areas/{location_stoarge_uuid}/storage_shelfs' \
--header 'Authorization: {API Key}'
Response:
{
"nb_total_results": 0,
"records_per_page": 100,
"nb_pages": 1,
"current_page": 1,
"sorting_col_name": "created_on",
"sorting_col_is_asc": true,
"data": null
}
Get product lot
curl --location 'https://api.test.tracktraceweb.com/2.0/products/lots/?is_in_stock_only=true' \
--header 'Authorization: {API Key}'
Response:
{
"nb_total_results": 1,
"records_per_page": 100,
"nb_pages": 1,
"current_page": 1,
"sorting_col_name": "lot_expiration",
"sorting_col_is_asc": true,
"data": [
{
"product_uuid": string,
"product_sku": "1235321",
"product_upc": "12345",
"gtin14": null,
"product_category_id": null,
"product_category_name": null,
"lot_id": 1,
"lot_number": "JJ123",
"lot_type": "LOT_BASED",
"lot_expiration": null,
"lot_best_by": null,
"lot_sell_by": null,
"lot_production_date": null,
"inventory_in_stock": 10,
"inventory_avail": 10,
"quarantined_quantity": 0,
"product_name": "test item 2000",
"product_long_name": "test item 2000",
"product_ndc": "1235321"
}
]
}
Get picking list
curl --location 'https://api.test.tracktraceweb.com/2.0/shipments/picking/?shipment_uuid={shipment_uuid}' \
--header 'Content-Type: application/json' \
--header 'Authorization: {API Key}'
Response:
{
"nb_total_results": 1,
"records_per_page": 100,
"nb_pages": 1,
"current_page": 1,
"sorting_col_name": "created_on",
"sorting_col_is_asc": true,
"data": [
{
"uuid": string,
"created_on": "2023-05-19 06:49:31.280074+00",
"outbound_shipment_uuid": string,
"location_uuid": string,
"trading_partner_uuid": "string,
"trading_partner_name": "test 2 customer",
"customer_id": "126675",
"trading_partner_external_reference": null,
"products_count_picked": 1,
"items_count_picked": 2,
"status": "PICKING_COMPLETED",
"session_closed_on": "2023-05-19 09:35:12.253994+00",
"picked_by_uuid": string,
"picked_by_name": "API TTRX 2",
"is_multiple_transactions": false,
"transaction_uuid": string,
"po_number": null,
"invoice_nbr": null,
"release_nbr": null,
"order_number": null,
"internal_reference_number": null,
"is_voided": false
}
]
}
Create a picking
curl --location 'https://api.test.tracktraceweb.com/2.0/shipments/picking/' \
--header 'Authorization: {API Key}' \
--form 'shipment_uuid=string'
Response:
{ “uuid”: “a5678f27-91f7-463f-a672-c599b70c3d6d” }
Pick items and close
curl --location 'https://api.test.tracktraceweb.com/2.0/shipments/picking/{picking_uuid}/pick_and_close' \
--header 'Authorization: {API Key}' \
--form 'items="[{\"type\" : \"LOT_BASED\",\"product_uuid\" : \"{product_uuid}\",\"lot_number\" : \"JJ123\", \"quantity\" : 2,\"storage_area_uuid\" : \"{storage_uuid}\"}]"' \
--form 'is_complete="true"' \
--form 'complete_ready_status="SHIPPED"'
Response:
{
"uuid": string,
"queue_url": "https://api.test.tracktraceweb.com/2.0/queue/{string}"
}