Closed zoriiz closed 4 years ago
I try to use redeem method and add track id as a param without customer.
client.redemptions.redeem(code, { track_id: 'string' })
and I got this error
{ code: 400, message: 'Invalid RedemptionContext', details: 'Unrecognized property \'tracking_id\'', key: 'invalid_redemption_context', toString: [Function] }
Any idea?
Sorry for late response @zoriiz. You can find it in README:
client.redemptions.redeem(code, {customer: {source_id: 'string'}})
I try to use redeem method and add track id as a param without customer.
client.redemptions.redeem(code, { track_id: 'string' })
and I got this error
{ code: 400, message: 'Invalid RedemptionContext', details: 'Unrecognized property \'tracking_id\'', key: 'invalid_redemption_context', toString: [Function] }
Any idea?