Capture: Create
Request
POST https://api.univapay.com/stores/{storeId}/charges/{id}/capture
Parameters:
Parameters | |
id | string (UUID) [Required] The unique identifier for the charge |
store_id | string (UUID) [Required] The unique identifier for the store the charge was made to. |
amount | number [Required] Amount to capture. This must be lower than the amount when it was authorized. |
currency | string (ISO-4217) [Required] Currency code in ISO-4217. This must be same as the currency when it was authorized. |
Headers:
Content-Type: application/json
Authorization: Bearer {secret}.{jwt}
Body:
curl --request POST \
--url https://api.univapay.com/stores/af857264-180c-11e7-9be2-276aea4fed28/charges/0fe1e42a-1845-11e7-9b1f-d3bd0c055a99/capture \
--header 'Authorization: Bearer {secret}.{jwt}' \
--header 'Content-type: application/json' \
--data '{
"amount": 1000,
"currency": "JPY"
}'