POST
/
api
/
v1
/
order
/
{orderId}
/
create-card
Create a card out of a card order
const url = 'https://api.gnosispay.com/api/v1/order/{orderId}/create-card';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"pinData":{"encryptedKey":"encryptedKey","encryptedPin":"encryptedPin","iv":"iv"},"transactionHash":"0x1234567890123456789012345678901234567890123456789012345678901234","couponCode":"COUPON_CODE"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
"success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

orderId
string
required

The unique identifier of the card order.

Example:

"1234"

Body

application/json

Response

200
application/json

The card was created successfully

The response is of type object.