POST
/
v1
/
order
/
session
Create order session
curl --request POST \
  --url https://ebtsandbox-staging.bennyapi.com/v1/order/session \
  --header 'Content-Type: application/json' \
  --data '{
  "externalCustomerId": "animas",
  "externalOrderId": "steve1111",
  "onSuccessRedirectUrl": "https://walmart.com",
  "onExitRedirectUrl": "https://walmart.com",
  "items": [
    {
      "description": "Cogito .",
      "id": "UK0MAwZ5l9PuuMzy9nUgd",
      "paddedPrice": 603,
      "photoUrl": "https://loremflickr.com/400/400?lock=6387475124499758",
      "price": 74,
      "quantity": 1,
      "snapEligible": true,
      "taxRate": 0.03,
      "unit": "COUNT"
    },
    {
      "description": "Tactus caste suasoria. Caste sublime solum vulpes arbitro derelinquo cotidie sollers volubilis. Caveo correptius cubitum votum spargo depono caecus blanditiis delego. Spoliatio theatrum coadunatio adsidue timor ab.",
      "id": "YMovtQ8w1zxuECgpSXI7h",
      "paddedPrice": 418,
      "photoUrl": "https://loremflickr.com/400/400?lock=3440015281191226",
      "price": 475,
      "quantity": 2,
      "snapEligible": true,
      "taxRate": 0.08,
      "unit": "COUNT"
    }
  ]
}'
{
  "sessionUrl": "<string>"
}

Headers

Api-Key
string

Body

application/json
onSuccessRedirectUrl
string
required

The URL to redirect the customer to on checkout success

onExitRedirectUrl
string
required

The URL to redirect the customer to on checkout exit

items
object[]
required

List of items in the shopping cart

externalCustomerId
string

An optional ID unique to your organization representing the customer

externalOrderId
string

An optional ID unique to your organization representing the order

Response

Order created successfully

Response containing the created order details

sessionUrl
string
required

The unique checkout session URL for the customer to complete their EBT order