Versions Compared

Key

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

...

Request

Response

POST /v10/orders

Code Block
languagejson
{
  "order": {
    "client_id": 1507094,
    "created_by_ip_address": "66.49.214.206",
    "delivery": {
      "address_id": "123456",
      "cost": 5,
      "email_address_id": 1965046,
      "phone_number_id": 9876542,
      "type": "TMMobile"
    },
    "discount": 5,
    "promo_code": "TAKE5",
    "payments": [
      {
        "typeaddress_id": 6548987,
        "credit_card"amount": 305.96,
        "tokenmethod": "tok_22hZsYJWAqThLElwgjGTNuyHBraintreeApplePay",
        "amounttype": 305.96"credit_card",
        "address_id": 6548987token": "tok_22hZsYJWAqThLElwgjGTNuyH"        
      }
    ],
    "reference": "An optional reference field",
    "service_fee": 10,
    "session_id": "riskified_session_id_123",
    "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

...