Orders

Merchant API

Create order

POST https://sandbox.ca.swapple.io/public/api/orders/

Generates cryptocurrency payment methods

Headers

Name
Type
Description

public-key*

String

Your public key. Authorization

timestamp*

String

Current timestamp that was used to generate the signature in milliseconds.

signature*

String

HMAC SHA512 key/value signature.

Request Body

Name
Type
Description

products*

Array

Array of objects (Product)

amount*

String

<decimal> | price in account currency

domainUrl*

String

<uri> | [ 1 .. 255 ] characters

lang

String

Enum: ["eu", "ua"]

email

String

<email> | <= 255 characters | customer email

firstName

String

<= 50 characters | customer first name

currency*

Currency to exchange from. Currencies

redirectUrl*

<uri> | [ 1 .. 255 ] characters

lastName

String

<= 50 characters | customer last name

phoneNumber

String

<= 15 characters | customer phone number

merchantOrderId*

String

[ 1 .. 255 ] characters

Product body

Field
Description

name

string | <= 255 characters

price (required)

string <decimal> | product price in fiat

count

integer | number of objects

List orders

GET https://sandbox.ca.swapple.io/public/api/orders/

Merchant list of orders.

Query Parameters

Name
Type
Description

merchantOrderId

String

filter by merchant order id

Headers

Name
Type
Description

public-key*

String

Your public key. Authorization

timestamp*

String

Current timestamp that was used to generate the signature in millisecond.

signature*

String

HMAC SHA512 key/value signature.

User API

Retrieve order

GET https://sandbox.ca.swapple.io/public/api/orders/{slug}/

Retrieve a specific order by its slug.

Path Parameters

Name
Type
Description

slug*

String

Order pay

PATCH https://ca.swapple.org/public/api/orders/{slug}/pay/

Indicates whether user has paid the order.

Path Parameters

Name
Type
Description

slug*

String

Request Body

Name
Type
Description

isUserPayed*

Boolean

Indicates that user payed

Last updated