Create server session
This method is used to create a server session for BridgerPay's Cashier and generate a unique cashier token.

Request example

POST /{{version}}/cashier/session/create/{{API_KEY}}
Content-Type: application/json
Host: {{API_URL}}
Authorization: Bearer {{ACCESS_TOKEN}}
Accept-Language: en
{
"cashier_key": "{{CASHIER_KEY}}",
"order_id": "g173aa02",
"first_name": "Juan",
"last_name": "Lopez",
"email": "[email protected]",
"language": "en",
"currency": "EUR",
"country": "NL",
"state": null,
"address": "Boenluif 30",
"city": "Hoogwoud",
"zip_code": "1718 AZ",
"direct_payment_method": "credit_card",
"amount": 45.36,
"currency_lock": false,
"amount_lock": false,
"phone": "+311234445566",
"affiliate_id": null,
"tracking_id": null,
"platform_id": null,
"payload": null,
"hide_header": false,
"pay_mode": true
}
post
<URL>
/{{version}}/cashier/session/create/{{API_KEY}}
Create Server Session By Merchant API Key