Redeem a card

We call the change in balance of a card a "balance adjustment. So to create a redemption, make a mutation request to createBalanceAdjustment with a negative value.

mutation(
  $currency: String
  $value: Int
  $card_reference: String!
  $merchant_id: Int!
) {
  createBalanceAdjustment(
    currency: $currency
    card_reference: $card_reference
    value: $value
    merchant_id: $merchant_id
  ) {
    id
    value
    LineItem {
      Card {
        id
        card_reference
        balance
        initial_balance
        created_at
        updated_at
      }
    }
  }
}

Last updated