🚚Pulling a card - Synchronous call

This page aims to assist you in pulling your first gift card through our synchronous API.

Request ID

For each card pulled, a request ID will be associated with it. You can provide the request ID yourself; the only rule to follow is that it must be unique. If you don't provide a request ID, we will generate one for you, which will be communicated in the pull response.

What is the purpose of this request ID? A concrete example:

  • You make a card pull call with the request ID: 'REQ-ID-1'

  • For some reason, you fail to retrieve the response to this call (timeout, loss of internet connection, bugs, ...).

  • If you want to retrieve this card afterward, you just need to make another call with the request ID 'REQ-ID-1' to retrieve the same card.

To summarize simply: a pull call for card A is associated with a request ID 'A.' All calls made with this request ID 'A' will return the response from the call for card A. To make a new pull, you need to make a call with a request ID 'B.'

Pulling a card

To pull a card, you must use the following endpoint:

Create card.

POST https://api.walleo.io/partners/v1/cards

Creates a new card.

X-RequestId

Request Body

Name
Type
Description

amount*

integer

The amount of the gift card

gift_card_code*

string

The code of the gift card

Response

Errors

The pull time for a card may vary depending on the brand. The response to this request is dependent on the card's pull time. Therefore, we recommend setting a timeout of 10 seconds and attempting to retrieve the card again one minute later using your request ID:

  • If your card is still in the process of being pulled, the response to your call will be: 'come back later.' Call the endpoint again in a few moments (a recommended 10-second interval between each call)

  • If your card has been successfully pulled, the response will contain that same card.

  • If an error occurs during the pull, that error will be returned to you.

Last updated