PATCH
/
v1
/
service
/
voucher
/
{voucherId}
curl --request PATCH \
  --url https://api.nxos.io/v1/service/voucher/{voucherId} \
  --header 'Content-Type: application/json' \
  --data '{
  "expires_at": "<string>",
  "status": "ACTIVE",
  "metadata": {}
}'
{
  "voucher_id": "<string>",
  "value": {
    "amount": "<string>",
    "asset_code": "<string>"
  },
  "expires_at": "<string>",
  "provider_name": "<string>",
  "funding_source_account": "<string>",
  "status": "ACTIVE"
}

Path Parameters

voucherId
string
required

The unique identifier of the voucher to update.

Body

application/json

The details of the voucher properties to be updated.

The body is of type object.

Response

200 - application/json

The updated Voucher object containing all relevant details.

The response is of type object.