Having some trouble creating an order and associating it with a customer_id. I am creating an order via API call, then taking that order number and using it to create an invoice. When I look for the invoice online at squareup.com, I am only seeing a blank invoice that is not associated with the customer_id in the original order request.
Here is the response from the order request:
{
“order”: {
“id”: “oxJkC3xZGTdMpmGpKPjRlBB81OEZY”,
“location_id”: “LRXF842J8WMYC”,
“line_items”: [
{
“uid”: “l40MXzcayPBMJtpd6fA9JC”,
“catalog_object_id”: “67YLAAFCCPC2KIZZSP6TGOLU”,
“catalog_version”: 1771952509881,
“quantity”: “1”,
“name”: “Labor”,
“variation_name”: “Regular”,
“base_price_money”: {
“amount”: 22000,
“currency”: “USD”
},
“gross_sales_money”: {
“amount”: 22000,
“currency”: “USD”
},
“total_tax_money”: {
“amount”: 0,
“currency”: “USD”
},
“total_discount_money”: {
“amount”: 0,
“currency”: “USD”
},
“total_money”: {
“amount”: 22000,
“currency”: “USD”
},
“variation_total_price_money”: {
“amount”: 22000,
“currency”: “USD”
},
“item_type”: “ITEM”,
“total_service_charge_money”: {
“amount”: 0,
“currency”: “USD”
},
“total_card_surcharge_money”: {
“amount”: 0,
“currency”: “USD”
}
}
],
“created_at”: “2026-03-25T17:48:46.103Z”,
“updated_at”: “2026-03-25T17:48:46.103Z”,
“state”: “OPEN”,
“version”: 1,
“total_tax_money”: {
“amount”: 0,
“currency”: “USD”
},
“total_discount_money”: {
“amount”: 0,
“currency”: “USD”
},
“total_tip_money”: {
“amount”: 0,
“currency”: “USD”
},
“total_money”: {
“amount”: 33000,
“currency”: “USD”
},
“service_charges”: [
{
“uid”: “tYxqIfbFVzL5rMClL0ej1B”,
“name”: “Service Charge”,
“amount_money”: {
“amount”: 11000,
“currency”: “USD”
},
“applied_money”: {
“amount”: 11000,
“currency”: “USD”
},
“calculation_phase”: “TOTAL_PHASE”,
“taxable”: false,
“total_money”: {
“amount”: 11000,
“currency”: “USD”
},
“total_tax_money”: {
“amount”: 0,
“currency”: “USD”
},
“type”: “CUSTOM”,
“treatment_type”: “LINE_ITEM_TREATMENT”
}
],
“total_service_charge_money”: {
“amount”: 11000,
“currency”: “USD”
},
“net_amounts”: {
“total_money”: {
“amount”: 33000,
“currency”: “USD”
},
“tax_money”: {
“amount”: 0,
“currency”: “USD”
},
“discount_money”: {
“amount”: 0,
“currency”: “USD”
},
“tip_money”: {
“amount”: 0,
“currency”: “USD”
},
“service_charge_money”: {
“amount”: 11000,
“currency”: “USD”
},
“card_surcharge_money”: {
“amount”: 0,
“currency”: “USD”
}
},
“source”: {
“name”: “poolTronFilemaker”
},
“customer_id”: “1QR4FFWZJ3Z93W1VSEVXTFJFZG”,
“net_amount_due_money”: {
“amount”: 33000,
“currency”: “USD”
},
“total_card_surcharge_money”: {
“amount”: 0,
“currency”: “USD”
}
}
}