Requires manage_payments permission
PATCH
/transactions/{transaction}
curl \
--request PATCH 'https://api.au.enjovia.app/transactions/{transaction}' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "Account-ID: string" \
--data '{"payment_reference":"string"}'
Request examples
# Headers
Account-ID: string
# Payload
{
"payment_reference": "string"
}
Response examples (200)
{
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"list_prices_include_tax": false,
"list_price": 5000,
"promotion_name": "Summer Sale - 20% Off",
"promotion_code": "SUMMER20",
"discounts": {
"promotion": 1000,
"staff_discount": 150
},
"tax_percentages": {
"0": 0,
"0.1": 50,
"0.2": 167
},
"tax": 850,
"value": 4850,
"currency_code": "usd",
"buyer": {
"email": "customer@example.com",
"name": "John Smith"
},
"marketing_consent": true,
"completed_at": "2024-01-15T14:30:00Z",
"type": "online",
"is_imported": false,
"payment_gateway": "Stripe",
"payment_reference": "cs_live_a11YYufWQzNY63zpQ6QSNRQhkUpVph4WRmzW0zWJO2znZKdVujZ0N0S22u"
}
}