Javascript
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" } ]
Retrieves all card orders for the authenticated user
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The card orders for the user
The response is of type object[].
object[]