Checkout
Checkout process endpoints
Authorizations
Responses
200
The checkout sessions
application/json
get
GET /api/v1/checkout HTTP/1.1
Host: wewireproduction.com
Accept: */*
200
The checkout sessions
[
{
"id": "text",
"currency": "text",
"amount": 1,
"email": "text",
"name": "text",
"productId": "text",
"productName": "text",
"productDescription": "text",
"allowedAssets": [
"text"
],
"expiresAt": "text",
"metadata": {},
"customerId": "text",
"redirectUrl": "text",
"cancelUrl": "text",
"createdAt": "text",
"updatedAt": "text",
"customer": {}
}
]
Authorizations
Body
amountnumberRequiredExample:
The amount to charge the customer
100
currencystring · enumRequiredExample:
The currency to charge the customer
USD
Possible values: successUrlstringRequiredExample:
The URL to redirect the customer to after the payment is successful
https://example.com/success
cancelUrlstringRequiredExample:
The URL to redirect the customer to after the payment is cancelled
https://example.com/cancel
namestringRequiredExample:
The name of the customer
John Doe
metadataobjectRequiredExample:
Additional metadata about the checkout session. This will be returned in the webhooks for the merchant
{"orderId":"1234567890","customerId":"1234567890"}
productIdstringRequiredExample:
The ID of the product to charge the customer for
1234567890
productNamestringRequiredExample:
The name of the product to charge the customer for
Product Name
productDescriptionstringRequiredExample:
The description of the product to charge the customer for
Product Description
allowedAssetsstring · enumRequiredExample:
The allowed assets for the checkout session. If empty, all assets will be allowed.
["ETH","USDT","USDC"]
Possible values: Responses
200
The checkout session
application/json
post
POST /api/v1/checkout HTTP/1.1
Host: wewireproduction.com
Content-Type: application/json
Accept: */*
Content-Length: 361
{
"amount": 100,
"currency": "USD",
"successUrl": "https://example.com/success",
"cancelUrl": "https://example.com/cancel",
"email": "[email protected]",
"name": "John Doe",
"metadata": {
"orderId": "1234567890",
"customerId": "1234567890"
},
"productId": "1234567890",
"productName": "Product Name",
"productDescription": "Product Description",
"allowedAssets": [
"ETH",
"USDT",
"USDC"
]
}
200
The checkout session
{
"url": "text"
}
Authorizations
Path parameters
idstringRequired
Checkout session ID
Responses
200
The checkout session
application/json
get
GET /api/v1/checkout/sessions/{id} HTTP/1.1
Host: wewireproduction.com
Accept: */*
200
The checkout session
{
"id": "text",
"currency": "text",
"amount": 1,
"email": "text",
"name": "text",
"productId": "text",
"productName": "text",
"productDescription": "text",
"allowedAssets": [
"text"
],
"expiresAt": "text",
"metadata": {},
"customerId": "text",
"redirectUrl": "text",
"cancelUrl": "text",
"createdAt": "text",
"updatedAt": "text",
"customer": {}
}