Purchase order events

purchase_order.created

Copy
Copied
{
	"1": {
		"id": "0eb21d18-6c44-4865-a68e-db902e9e5e9c",
		"source": "SHIPWELL_WEB",
		"status": "",
		"company": {
			"id": "a54ef012-77d4-44a0-8ba5-115b09b655be",
			"self_link": "/v2/companies/a54ef012-77d4-44a0-8ba5-115b09b655be/",
			"resource_type": "company"
		},
		"archived": false,
		"shipment": null,
		"self_link": "/v2/purchase-orders/0eb21d18-6c44-4865-a68e-db902e9e5e9c/",
		"tax_amount": null,
		"description": null,
		"origin_stop": null,
		"order_number": "MM-5676",
		"customer_name": "Workforce",
		"resource_type": "purchase_order",
		"supplier_name": "Flowers by Cindy",
		"origin_address": {
			"city": "Austin",
			"country": "US",
			"latitude": 30.3441591,
			"timezone": "America/Chicago",
			"longitude": -97.7699996,
			"postal_code": "78731",
			"phone_number": null,
			"address_line_1": "5811 Mesa Dr",
			"address_line_2": null,
			"state_province": "TX"
		},
		"created_by_user": {
			"id": "75a0a1b2-97f4-4d33-858e-eab49c3159b5",
			"self_link": "/v2/companies/a54ef012-77d4-44a0-8ba5-115b09b655be/users/75a0a1b2-97f4-4d33-858e-eab49c3159b5/",
			"resource_type": "user"
		},
		"subtotal_amount": null,
		"destination_stop": null,
		"source_system_id": null,
		"destination_address": {
			"city": "Austin",
			"country": "US",
			"latitude": 30.3539143,
			"timezone": "America/Chicago",
			"longitude": -97.68906679999999,
			"postal_code": "78753",
			"phone_number": null,
			"address_line_1": "9001 N Interstate Hwy 35",
			"address_line_2": "Unit 110",
			"state_province": "TX"
		},
		"invoice_external_id": null,
		"tax_amount_currency": null,
		"customer_external_id": null,
		"supplier_external_id": null,
		"actual_pickup_datetime": null,
		"origin_dock_external_id": null,
		"actual_delivery_datetime": null,
		"subtotal_amount_currency": null,
		"planned_pickup_end_datetime": null,
		"destination_dock_external_id": null,
		"planned_delivery_end_datetime": null,
		"planned_pickup_start_datetime": null,
		"origin_appointment_external_id": null,
		"planned_delivery_start_datetime": null,
		"destination_appointment_external_id": null
	}
}

purchase_order.updated

Copy
Copied
{
	"1": {
		"id": "713c88ed-1dde-49cf-a0fd-ba5c40ca09b4",
		"new_data": {
			"origin_stop": {
				"id": "b9d2f7f9-9c29-4933-b2c1-91911530aef9",
				"self_link": "/v2/shipments/6139251e-5066-4169-8d0f-2d619e1b1082/stops/b9d2f7f9-9c29-4933-b2c1-91911530aef9/",
				"resource_type": "stop"
			},
			"destination_stop": {
				"id": "b1c1b8a7-f471-4413-9949-ae23c3234b9a",
				"self_link": "/v2/shipments/6139251e-5066-4169-8d0f-2d619e1b1082/stops/b1c1b8a7-f471-4413-9949-ae23c3234b9a/",
				"resource_type": "stop"
			}
		},
		"old_data": {
			"origin_stop": null,
			"destination_stop": null
		},
		"self_link": "/v2/purchase-orders/713c88ed-1dde-49cf-a0fd-ba5c40ca09b4/",
		"resource_type": "purchase_order"
	}
}
Copyright © Shipwell 2022. All right reserved.