PomeloEx.Cards.Associations.Associations (PomeloEx v0.1.0)

View Source

Card-to-user-account linking.

Manages the linking and unlinking of cards to user accounts. Multiple cards can be linked to the same account (e.g., one virtual and one physical card).

Requirements

  • Both the account and card must have "Active" status
  • The account and card must belong to the same user
  • A card can only be linked to one account per currency

Summary

Functions

Link card The endpoint Post /cards/associations/v1 enables you to link a card with a Pomelo user account. Multiple cards can be linked with the same account. For example, it is possible to link a virtual card and a physical card.

Search associations The Get /cards/associations/v1 endpoint allows you to search for a group of associations.

Unlink card The Delete /cards/associations/v1 endpoint enables you to unlink a card from an account.

Functions

search_associations(payload)

Search associations The Get /cards/associations/v1 endpoint allows you to search for a group of associations.

Considerations# Filters must be specified as parameters following this pattern: filter[campo]=valor. For example: /cards/associations/v1?filter[card_id]=crd-20I5vMjljS3VEyafcX8lA3T3g0c

Filtering by at least one of the allowed fields is required

The results will be paginated and you can specify which page to view using: page[number]=value.