Orders
Merchant API
Create order
POST
https://sandbox.ca.swapple.io/public/api/orders/
Generates cryptocurrency payment methods
Headers
public-key*
String
timestamp*
String
Current timestamp that was used to generate the signature in milliseconds.
signature*
String
HMAC SHA512 key/value signature.
Request Body
products*
Array
amount*
String
<decimal> | price in account currency
domainUrl*
String
<uri> | [ 1 .. 255 ] characters
lang
String
Enum: ["eu", "ua"]
String
<email> | <= 255 characters | customer email
firstName
String
<= 50 characters | customer first name
currency*
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
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
merchantOrderId
String
filter by merchant order id
Headers
public-key*
String
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
slug*
String
Order pay
PATCH
https://ca.swapple.org/public/api/orders/{slug}/pay/
Indicates whether user has paid the order.
Path Parameters
slug*
String
Request Body
isUserPayed*
Boolean
Indicates that user payed
Last updated