GET
/
api
/
v1
/
order
/
List Physical Card Orders
const url = 'https://api.gnosispay.com/api/v1/order/';
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.

Response

The card orders for the user

id
string<uuid>
required

The unique identifier of the card order.

Example:

"123e4567-e89b-12d3-a456-426614174000"

userId
string
required

The user id for this card order.

status
enum<string>
required

Current order status

Available options:
PENDINGTRANSACTION,
TRANSACTIONCOMPLETE,
CONFIRMATIONREQUIRED,
READY,
CARDCREATED,
FAILEDTRANSACTION,
CANCELLED
personalizationSource
enum<string>
required
Available options:
KYC,
ENS
totalDiscountEUR
number
required
Example:

1.99

createdAt
string<date-time>
required

When the order was created

Example:

"2023-01-09T13:45:30Z"

transactionHash
string | null

The on-chain transaction hash associated with the order.

Example:

"0x123abc..."

embossedName
string | null

The name embossed on the card.

Example:

"John Doe"

address1
string | null

The first line of the shipping address.

address2
string | null

The second line of the shipping address.

city
string | null

The city of the shipping address.

postalCode
string | null

The postal code of the shipping address.

state
string | null

The state of the shipping address.

country
string | null

The country of the shipping address.

couponCode
string

The coupon code tied to this card order

Example:

"DISCOUNT2023"

totalAmountEUR
number | null
Example:

20.99