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

Request example

1
POST /v1/cashier/session/create/{{API_KEY}}
2
Content-Type: application/json
3
Host: {{API_URL}}
4
Authorization: Bearer {{ACCESS_TOKEN}}
5
Accept-Language: en
6
{
7
"cashier_key": "{{CASHIER_KEY}}",
8
"order_id": "g173aa02",
9
"first_name": "Juan",
10
"last_name": "Lopez",
11
"email": "[email protected]",
12
"language": "en",
13
"currency": "EUR",
14
"country": "NL",
15
"state": null,
16
"address": "Boenluif 30",
17
"city": "Hoogwoud",
18
"zip_code": "1718 AZ",
19
"direct_payment_method": "credit_card",
20
"amount": 45.36,
21
"currency_lock": false,
22
"amount_lock": false,
23
"phone": "+311234445566",
24
"affiliate_id": null,
25
"tracking_id": null,
26
"platform_id": null,
27
"payload": null,
28
"hide_header": false
29
}
Copied!
post
<URL>
/v1/cashier/session/create/{{API_KEY}}
Create Server Session By Merchant API Key
Last modified 6d ago