API docs

Order payment

POST
/order/payment

Submitting payment confirms the order and sends it to the production facility. Once paid, the order enters the fulfillment flow and can no longer be modified.

Request Body

application/json
  1. body
order_id*number

id of the order to be paid

merchant_api_key*string

API key of your account

secret*string

SHA-256 encoded value of the string formed by putting together your secret key and the order number e.g for secretKey="SECRETABCD" and orderId=1234, you have SHA-256("SECRETABCD1234") = "4bf65a3ffc022f0070babee6540048dfc1a3faad270f62f8084fe66f94ebf8fd"

Response Body

OK

application/json
  1. response
order_state?string
Example Request
curl -X POST 'https://test.www.peecho.com/rest/v3/order/payment' \  -H 'Content-Type: application/json' \  -d '{  "order_id": 1234,  "merchant_api_key": "API_KEY",  "secret": "4bf65a3ffc022f0070babee6540048dfc1a3faad270f62f8084fe66f94ebf8fd"}'
Example Response
{  "order_state": "PAID"}