Response 201 Copy
{
"data" : {
"receipts" : [
{
"id" : 311 ,
"purchase_order_id" : 1042 ,
"received_at" : null ,
"voided_at" : null ,
"source" : "api" ,
"location" : {
"id" : 61234567890 ,
"name" : "Main warehouse"
},
"invoice" : {
"reference" : "INV-8812" ,
"date" : "2026-09-02" ,
"total" : "324.75"
},
"exchange_rate" : 1.36 ,
"rejected_disposition" : "replace" ,
"note" : "Two cartons short; supplier notified." ,
"lines" : [
{
"id" : 5001 ,
"line_id" : 5001 ,
"quantity" : 24 ,
"surplus_quantity" : 0 ,
"rejected_quantity" : 0 ,
"unit_cost" : "12.50" ,
"landed_unit_cost" : "13.10" ,
"allocated_charge_amount" : "0.60"
}
],
"shopify_sync" : {
"state" : "synced" ,
"attempted_at" : "2026-09-11T08:12:46Z" ,
"error" : null
},
"created_at" : "2026-09-01T10:00:00Z" ,
"updated_at" : "2026-09-11T08:12:44Z"
}
],
"payments" : [
{
"id" : 52 ,
"amount" : "324.75" ,
"currency" : "USD" ,
"paid_on" : "2026-09-30" ,
"method" : "bank_transfer" ,
"reference" : "Wire 4471" ,
"note" : "Paid by wire." ,
"created_at" : "2026-09-01T10:00:00Z"
}
],
"id" : 1 ,
"number" : "PO-1042" ,
"sequential_id" : 1042 ,
"status" : "ordered" ,
"type" : "purchase" ,
"archived" : false ,
"archived_at" : null ,
"source" : "api" ,
"supplier" : {
"id" : 7 ,
"name" : "Acme Supply Co"
},
"supplier_id" : 7 ,
"currency" : "USD" ,
"exchange_rate" : {
"rate" : 1.36 ,
"base_currency" : "USD" ,
"date" : "2026-09-02" ,
"source" : "api"
},
"reference" : "INV-8812" ,
"customer_order_number" : null ,
"supplier_order_number" : "SO-77120" ,
"invoice_number" : null ,
"account_number" : "AC-2231" ,
"notes" : null ,
"expected_at" : "2026-09-20" ,
"payment_due_on" : "2026-10-02" ,
"payment_status" : "unpaid" ,
"paid_at" : null ,
"location" : {
"id" : 61234567890 ,
"name" : "Main warehouse"
},
"updates_stock" : true ,
"ships_to_customer" : false ,
"ship_to_address" : null ,
"tax" : {
"rate_id" : 1 ,
"name" : "Acme Supply Co" ,
"rate_percent" : 8.25 ,
"taxes_included" : false ,
"charges_taxable" : true
},
"totals" : {
"currency" : "USD" ,
"subtotal" : "300.00" ,
"charges" : "0.00" ,
"tax" : "24.75" ,
"total" : "324.75"
},
"lines" : [
{
"id" : 5001 ,
"position" : 1 ,
"product_title" : "Stoneware mug" ,
"variant_title" : "Blue" ,
"sku" : "MUG-BLU" ,
"supplier_sku" : "ACME-MUG-BLU" ,
"barcode" : "0123456789012" ,
"pack_code" : "CS12" ,
"inventory_item_id" : 44811223344 ,
"variant_id" : 40011223344 ,
"product_id" : 7011223344 ,
"location_id" : 61234567890 ,
"quantity" : 24 ,
"cancelled_quantity" : 0 ,
"received_quantity" : 12 ,
"outstanding_quantity" : 12 ,
"unit_cost" : "12.50" ,
"discount_percent" : null ,
"line_total" : "300.00" ,
"taxable" : true ,
"tax_rate_percent" : 8.25 ,
"weight_grams" : 250 ,
"supplier_note" : null ,
"internal_note" : null
}
],
"charges" : [],
"shopify_sync" : {
"state" : "synced" ,
"attempted_at" : "2026-09-11T08:12:46Z" ,
"error" : null
},
"sent_at" : "2026-09-02T14:03:22Z" ,
"ordered_at" : "2026-09-02T14:05:10Z" ,
"in_transit_at" : null ,
"received_at" : null ,
"closed_at" : null ,
"created_at" : "2026-09-01T10:00:00Z" ,
"updated_at" : "2026-09-11T08:12:44Z"
}
}