Skip to content

Orders

Take a payment through a hosted checkout page.

Create an order

Request

Returns order_url, the hosted page where the customer pays.

Sign the parameters below with your secret key and send the result as data.

Security
ClientKey
Bodyapplication/jsonrequired
datastringrequired

A JWT signed with your secret key, holding the parameters.

Example:"example"
langstring
Default:"en"
Example:"example"
curl -i -X POST \
  https://docs.dimepay.net/_mock/apis/v1/dime-v1/orders \
  -H 'Content-Type: application/json' \
  -H 'client_key: YOUR_API_KEY_HERE' \
  -d '{
    "lang": "en",
    "data": "eyJhbGciOiJIUzI1NiJ9.eyJpZCI6Ii4uLiJ9.signature"
  }'

Responses

The order was created.

Bodyapplication/json
statusCodeintegerrequired

Repeats the HTTP status code.

Example:200
headersobject
bodyobjectrequired
Response
{ "statusCode": 200, "headers": { "Access-Control-Allow-Origin": "*" }, "body": { "message": "Successful created api order request", "response": { … } } }