Commerce APIs
POST Fulfillments
Overview
WaaS React SDK
Wallet as a Service (WaaS)
- Overview
- Quickstart
- Errors
- Pagination
- Wallet Creation APIs
- Wallet Experience APIs
- NFT APIs
- Web3 APIs
- SDK
Integrations
- Get Started
- Authentication
- Connectors
- FAQ
- Partners
Commerce APIs
POST Fulfillments
Create a fulfillment for an order.
POST
/
v1
/
apps
/
{appId}
/
fulfillments
curl -X 'POST' \
'https://api.bitski.com/v1/apps/{appId}/fulfillments' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-d '{
"fulfillment": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"items": [
{
"destinationAddress": "0xa4ef984773fd233c4cbed9cb1b905a3fa21e9461",
"quantity": 1,
"tokenTemplateId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
],
"type": "MINT_TOKEN"
}
}'
{
"fulfillment": {
"chainId": 1,
"createdAt": "2023-04-20T21:29:55.530Z",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": "SUCCEEDED",
"transactionHash": "0xc705dec104b3c5b9f2395edd2bb59a2a66304fec529c569f8b613ab392354ee4",
"items": [
{
"destinationAddress": "0xa4ef984773fd233c4cbed9cb1b905a3fa21e9461",
"tokenId": "0x1"
}
],
"type": "MINT_TOKEN"
}
}
Access to this API is available upon request to sales@bitski.com.
Path
curl -X 'POST' \
'https://api.bitski.com/v1/apps/{appId}/fulfillments' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-d '{
"fulfillment": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"items": [
{
"destinationAddress": "0xa4ef984773fd233c4cbed9cb1b905a3fa21e9461",
"quantity": 1,
"tokenTemplateId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
],
"type": "MINT_TOKEN"
}
}'
The Bitski application ID
Examples
Response
{
"fulfillment": {
"chainId": 1,
"createdAt": "2023-04-20T21:29:55.530Z",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": "SUCCEEDED",
"transactionHash": "0xc705dec104b3c5b9f2395edd2bb59a2a66304fec529c569f8b613ab392354ee4",
"items": [
{
"destinationAddress": "0xa4ef984773fd233c4cbed9cb1b905a3fa21e9461",
"tokenId": "0x1"
}
],
"type": "MINT_TOKEN"
}
}
curl -X 'POST' \
'https://api.bitski.com/v1/apps/{appId}/fulfillments' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-d '{
"fulfillment": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"items": [
{
"destinationAddress": "0xa4ef984773fd233c4cbed9cb1b905a3fa21e9461",
"quantity": 1,
"tokenTemplateId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
],
"type": "MINT_TOKEN"
}
}'
{
"fulfillment": {
"chainId": 1,
"createdAt": "2023-04-20T21:29:55.530Z",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": "SUCCEEDED",
"transactionHash": "0xc705dec104b3c5b9f2395edd2bb59a2a66304fec529c569f8b613ab392354ee4",
"items": [
{
"destinationAddress": "0xa4ef984773fd233c4cbed9cb1b905a3fa21e9461",
"tokenId": "0x1"
}
],
"type": "MINT_TOKEN"
}
}