Redemptions

During the redemption payment phase of the redemption process, you need to delete amounts from the issuer wallet address after the payment has been successful. You can only delete amounts that are stored on the issuer wallet address set up for the product.

Creating a redemption

The following data is needed to create a redemption:

Field
Description

source_address

Issuer wallet address

product_id

ID of the product

units

Number of units that should be deleted

Example:

r = requests.post(
    f'{URL}/issuer/v2/redemptions/',
        json={
            'source_address': '0x...',
            'product_id': product_id,
            'units': 100
        },
        headers={**headers, 'X-Idempotency-Key': make_key()}
    )
assert r.status_code < 300, r.content
print(f'Redemption: {r.json()['id']}')

Retrieving redemption information

You can use the Issue API to retrieve details about all redemptions. You can also filter by product:

Last updated

Was this helpful?