This method is used to create a new checkout resource. The body of a create method call contains the JSON-representation of the checkout-resource.
Request | Response | ||
---|---|---|---|
Header
|
|
|
|
Body
|
Checkout-resource | Checkout-resource |
The test URI is https://test-api.payson.se/2.0/Checkouts
Code | Status | Info |
---|---|---|
201 | Created | The call was successful. The created resource will be returned in the response body. |
400 | Bad request | The call failed. Look at the returned JSON-object for more information. |
401 | Unauthorized | The authorization failed. Check the authorization field in the header. |
POST https://api.payson.se/2.0/Checkouts HTTP/1.1 Host: api.payson.se Accept: application/json Authorization: Basic MTIzNDpkYzE1NzE4Mi1lMjVhLTQwMDgtYmQwOS05MDNkZjM0MjhkYjQ= Content-Type: application/json Content-Length: 778 |
{ |
HTTP/1.1 201 Created Location: https://api.payson.se/2.0/Checkouts/264d3bfd-f7a1-4122-8556-a56700f71eaa Content-Length: 1435 |