Returns
Approve return
Approve a return in status pending_approval. Approving a return updates its status to approved.
post/returns/{id}/approve
Request
- Base URLhttps://sandbox.numeral.io/v1
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
The ID of the return.
Response
Successfully approved return.
Example response
{
"object": "return",
"metadata": {
"property_a": true,
"property_b": "false"
},
"originating_account_bank_address": {
"line_1": "1, place de la Concorde",
"building_number": "1",
"street_name": "place de la Concorde",
"postal_code": "75008",
"city": "Paris",
"country": "FR",
"department": "Marketing",
"sub_department": "Content team",
"building_name": "Bat. 4",
"floor": "3",
"postal_box": "67b",
"room": "47",
"city_location_name": "Confluences",
"district_name": "District 9"
},
"receiving_account_bank_address": {
"line_1": "1, place de la Concorde",
"building_number": "1",
"street_name": "place de la Concorde",
"postal_code": "75008",
"city": "Paris",
"country": "FR",
"department": "Marketing",
"sub_department": "Content team",
"building_name": "Bat. 4",
"floor": "3",
"postal_box": "67b",
"room": "47",
"city_location_name": "Confluences",
"district_name": "District 9"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.