Skip to main content

Update a Refund

Updates a Refund resource.


Endpoint

PUT /refunds/:id

Sample code

const client = require('payrex-node')('insert your PayRex Secret API key.');

const refund = await client.refunds.update(
'<ID of the refund resource',
{
metadata: {
some_attr: 'value'
}
}
);

Parameters

metadata optional

A set of key-value pairs you can attach to the Refund. This can be useful for storing additional information about the Refund in a hash format.

Returns

Returns a Refund resource.