# Neuro-Pay Checkout API # Authentification In order to use the checkout API the company in question needs to generate an API key through the Neuro-Admin platform. Said API key should be sent as a bearer token in each request. [](https://wiki.paiwise.tech/uploads/images/gallery/2022-07/jgfimage.png) # Data format The API currently accepts and returns JSON data in the body # Requests Collection of possible requests # Create [POST] **https://api.paiwise.com/checkout/create** \[POST\]
identifier (optional) | String | Identifier of the checkout, if not passed the cid will get as reference |
amount | int | Smallest nominee for the currency. Example: 30SEK is 3000 öre so value of this param should be 3000 |
currency | String | EUR, SEK, USD… etc |
message | String | Message to be shown to customer in the checkout |
capture (optional) | Boolean (default: true) | If capture is set to false, a manual capture has to be done later. In order to release the funds back to the client the Refund endpoint can be used. |
allowSaveCard (optional) | Boolean (default: true) | If allowSaveCard is set to false, the user can't save the card in his card list for future usage. |
returnUrl | String | URL where the customer should be returned to after checkout process is done. |
returnUrlCancel | String | URL where the customer should be returned to if cancelling the checkout process |
customer\_id (optional) | String | If present activate the possibility to save the card during the payment |
card\_id (optional) | String | If present (customer\_id required) do an automatic payment |
template (optional) | String | For now only can be "iframe" which removes background image |
metaData | Array | Key value pair array to store additional data together with the payment. |
checkout\_id | String | The checkout\_id received when creating a checkout object |
checkout\_id | String | The checkout\_id received when creating a checkout object |
checkout\_id | String | The checkout\_id received when creating a checkout object |
amount (optional) | Int | If an amount to be refunded is not set the whole amount will be refunded |
reason (optional) | String | Reason of the refund. Value admitted: "duplicate", "requested\_by\_customer" or "fraudolent" |
refundDetails (optional) | String | Comments about the refund. Free text |
checkout\_id | String | The checkout\_id received when creating a checkout object |
metaData | String | An object key-value (if value is empty, the relative key will be deleted from the object) |
first\_name | String | Customer's last name |
last\_name | String | Customer's last name |
String | Customer's email | |
metaData | Array | Key value pair array to store additional data together with the customer. |
customer\_id | String | Customer's id |
customer\_id | String | Customer's id |