Skip to main content
Redeem a promotion code for free credit

Authorizations

Authorization
string
header
required

BoxRouter API key; never an upstream provider key.

Body

application/json
code
string
required

The promotion code as the customer typed it.

Required string length: 1 - 128

Response

The new redemption; read the balance again to see the new total.

code
string
required

The code in its canonical upper-case form.

amount_nanodollars
string
required

Credit granted, in billionths of a US dollar, as a canonical positive signed 64-bit nanodollar string.

Maximum string length: 19
Pattern: ^(?:[1-9][0-9]{0,17}|[1-8][0-9]{18}|9[0-1][0-9]{17}|92[0-1][0-9]{16}|922[0-2][0-9]{15}|9223[0-2][0-9]{14}|92233[0-6][0-9]{13}|922337[0-1][0-9]{12}|92233720[0-2][0-9]{10}|922337203[0-5][0-9]{9}|9223372036[0-7][0-9]{8}|92233720368[0-4][0-9]{7}|922337203685[0-3][0-9]{6}|9223372036854[0-6][0-9]{5}|92233720368547[0-6][0-9]{4}|922337203685477[0-4][0-9]{3}|9223372036854775[0-7][0-9]{2}|922337203685477580[0-7])$
description
string
required

What the credit is for, as the promotion describes it.

redeemed_at
string<date-time>
required