Checkout - Payments

Create a payment

Endpoint

POST /v1/orders/:order_id/payments

Parameters

Name Description
payment_method required Payment method

Request

curl "https://capi.storyblok.com/v1/orders/153072342293/payments" -d '{"payment_method":"cod"}' -X POST \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"
	-H "Authorization: Token token=ed12b36a6ccf989fc47babe8602d7349" \

Response

{
  "id": 3521,
  "created_at": "2018-07-04T16:57:02.000Z",
  "module": "cod",
  "payment_type": "CASH",
  "status": "Open",
  "redirect_url": "",
  "completed_url": "https://www.storyblok.com"
}

Getting a list of payments

Endpoint

GET /v1/orders/:order_id/payments

Request

curl "https://capi.storyblok.com/v1/orders/153072342269/payments" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"
	-H "Authorization: Token token=f82f7c6df316dc9dbe696cde0d965de0" \

Response

[

]