- Client Session API
- Payments API
- Payment Methods API
- Loyalty API
POST
$ curl -X POST https://api.sandbox.primer.io/client-session \ > -H "X-API-KEY: " \ > -H "Content-Type: application/json" \ > -d '{ > "orderId": "order-abc", > "currencyCode": "GBP", > "amount": 1000, > "order": { > "lineItems": [ > { > "amount": 100, > "itemId": "shoe-123", > "description": "Blue Shoe", > "quantity": 10 > } > ], > "countryCode": "AW" > }, > "customerId": "customer-123", > "customer": { > "emailAddress": "john@primer.io" > }, > "metadata": { > "productType": "Shoes" > }, > "paymentMethod": { > "vaultOnSuccess": true, > "vaultOn3DS": false, > "descriptor": "Purchase: Shoes", > "options": { > "PAYMENT_CARD": { > "networks": { > "VISA": { > "surcharge": { > "amount": 10 > } > } > } > } > }, > "authorizationType": "ESTIMATED" > } > }'