Quantcast
Channel: Square Developer Forums - Latest topics
Viewing all articles
Browse latest Browse all 1325

Customer not showing when added with orders api

$
0
0

I’ve tried countless things but somehow the customer just doesn’t show up on the orders

fulfillments has been added, customer_id is in the response, all the apis returns 200, the customer is created, the card gets added, the order shows but the customer is just not tied to the order

{
  "order": {
    "id": "uORVkRVZBZynfsoWFmjpFdsmia4F",
    "location_id": "LS6P9M1Q2BJCM",
    "line_items": [
      {
        "uid": "SeNSBHDi0yshzpjKEaLboB",
        "quantity": "1",
        "name": "rectangle",
        "base_price_money": {
          "amount": 6700,
          "currency": "CAD"
        },
        "gross_sales_money": {
          "amount": 6700,
          "currency": "CAD"
        },
        "total_tax_money": {
          "amount": 0,
          "currency": "CAD"
        },
        "total_discount_money": {
          "amount": 0,
          "currency": "CAD"
        },
        "total_money": {
          "amount": 6700,
          "currency": "CAD"
        },
        "variation_total_price_money": {
          "amount": 6700,
          "currency": "CAD"
        },
        "item_type": "ITEM",
        "total_service_charge_money": {
          "amount": 0,
          "currency": "CAD"
        }
      }
    ],
    "fulfillments": [
      {
        "uid": "Jo8jFnMbIIqF1b3cGIm9aD",
        "type": "SHIPMENT",
        "state": "PROPOSED",
        "shipment_details": {
          "recipient": {
            "customer_id": "2VKNAW8MCK660B0RFH3NYM0MJM",
            "display_name": "Fletcher Norman",
            "email_address": "jaxizogi@mailinator.com",
            "phone_number": "+14162113057",
            "address": {
              "address_line_1": "Saepe ad qui officii",
              "locality": "Nesciunt veritatis",
              "administrative_district_level_1": "IA",
              "postal_code": "47249",
              "country": "US"
            }
          }
        }
      }
    ],
    "metadata": {
      "customer_reference": "2VKNAW8MCK660B0RFH3NYM0MJM",
      "customer_order": "true"
    },
    "created_at": "2025-01-11T04:06:43.936Z",
    "updated_at": "2025-01-11T04:06:43.936Z",
    "state": "OPEN",
    "version": 1,
    "reference_id": "order-1736568403594",
    "total_tax_money": {
      "amount": 0,
      "currency": "CAD"
    },
    "total_discount_money": {
      "amount": 0,
      "currency": "CAD"
    },
    "total_tip_money": {
      "amount": 0,
      "currency": "CAD"
    },
    "total_money": {
      "amount": 6700,
      "currency": "CAD"
    },
    "total_service_charge_money": {
      "amount": 0,
      "currency": "CAD"
    },
    "net_amounts": {
      "total_money": {
        "amount": 6700,
        "currency": "CAD"
      },
      "tax_money": {
        "amount": 0,
        "currency": "CAD"
      },
      "discount_money": {
        "amount": 0,
        "currency": "CAD"
      },
      "tip_money": {
        "amount": 0,
        "currency": "CAD"
      },
      "service_charge_money": {
        "amount": 0,
        "currency": "CAD"
      }
    },
    "source": {
      "name": "Sandbox for sq0idp-bZbhu0qHE2xKTVjYtVG3xw"
    },
    "customer_id": "2VKNAW8MCK660B0RFH3NYM0MJM",
    "net_amount_due_money": {
      "amount": 6700,
      "currency": "CAD"
    }
  }
}

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1325

Trending Articles