GET
/
api
/
v1
/
order
/
{orderId}
Retrieve details of a Card Order
const url = 'https://api.gnosispay.com/api/v1/order/{orderId}';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}, body: undefined};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "transactionHash": "0x123abc...",
  "embossedName": "John Doe",
  "address1": "<string>",
  "address2": "<string>",
  "city": "<string>",
  "postalCode": "<string>",
  "state": "<string>",
  "country": "<string>",
  "userId": "<string>",
  "status": "PENDINGTRANSACTION",
  "personalizationSource": "KYC",
  "couponCode": "DISCOUNT2023",
  "totalAmountEUR": 20.99,
  "totalDiscountEur": 1.99,
  "createdAt": "2023-01-09T13:45:30Z"
}

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.

Response

200
application/json

Successfully retrieved card order details.

The response is of type object.