Logo
Developer portal API Documentation

Create payment order

POST https://demo-api.vivapayments.com/checkout/v2/orders/

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status





Curl
curl -X POST 'https://demo-api.vivapayments.com/checkout/v2/orders/' -d '{"amount":1234,"preauth":false,"tipAmount":null,"disableCash":false,"tags":null,"sourceCode":"Default","disableWallet":false,"paymentTimeout":1800,"customerTrns":"string","mechantrTrns":"string","allowRecurring":false,"maxInstallments":0,"disableExactAmount":false,"paymentNotification":false,"customer":{"email":"example@example.com","phone":"01234567890","fullName":"John Doe","countryCode":"GB","requestLang":null},"cardTokens":["ct_5d0a4e3a7e04469f8123456"],"isCardVerification":false,"transfer":{"amount":1000,"platformFee":null,"connectedAccountId":"ac33332a-5aa5-4bb5-bccf-c56161617a"},"klarnaOrderOptions":{"attachment":{"body":"string","contentType":"string"},"billingAddress":{"city":"London","email":"johndoe@example.com","phone":"01234567890","title":"Mr","region":"string","country":"GB","attention":"string","givenName":"John","familyName":"Doe","postalCode":"SW11 1AA","streetAddress":"1 Test Street","streetAddress2":"Flat 5","organizationName":"string"},"shippingAddress":{"city":"London","email":"johndoe@example.com","phone":"01234567890","title":"Mr","region":"string","country":"GB","attention":"string","givenName":"John","familyName":"Doe","postalCode":"SW11 1AA","streetAddress":"1 Test Street","streetAddress2":"Flat 5","organizationName":"string"},"orderLines":{"name":"Product","type":"physical","taxRate":"2000","quantity":"1","unitPrice":"5000","imageUrl":"https://www.example.com/example","reference":"987654","totalAmount":"4000","productUrl":"https://www.example.com/example","merchantData":"string","quantityUnit":"pcs","totalTaxAmount":"1000","totalDiscountAmount":"1000","subscription":{"name":"string","interval":"MONTH","intervalCount":"3"},"productIdentifiers":{"size":"12","brand":"Acme","color":"Teal","categoryPath":"Clothing \u003e Women's \u003e Dresses","globalTradeItemNumber":"123-456-789","manufacturerPartNumber":"123456789000"}}}}'

ENDPOINTS