Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Examples

In the examples below address_id, email_address_id, and phone_number_id may be replaced with their full corresponding objects as shown here.

...

Request

Response

POST /v10/orders

Code Block
languagejson
{
  "order": {
    "client_id": 1507094,
    "delivery": {
      "address_id": "123456",
      "cost": 5,
      "email_address_id": 1965046,
      "phone_number_id": 9876542,
      "type": "TMMobile"
    },
    "discount": 5,
    "promo_code": "TAKE5",
    "payments": [
      {
        "type": "credit_card",
        "token": "tok_22hZsYJWAqThLElwgjGTNuyH",
        "amount": 305.96,
        "address_id": 6548987
      }
    ],
    "session_id": "riskified_session_id_123",
    "service_fee": 10,
    "tax": 0,
    "tax_signature": "9166e5ac-c663-4236-ae8b-76eb890a0468",
    "ticket_group": {
      "id": 324466901,
      "price": 145.48,
      "quantity": 2,
      "wholesale_price": 126.32
    }
  }
}

See Orders / Index