Cancel recurring payment
post
https://api.cryptomus.com/v1/recurrence/cancel
Request
Query parameters
Name | Definition |
---|---|
uuid* | Recurrence uuid |
order_id* | Order ID in your system |
Definition
Recurrence uuidDefinition
Order ID in your system
* - mandatory parameter
To cancel the recurring payment you need to pass one of the required parameters, if you pass both, the account will be identified by order_id
Request example
curl https://api.cryptomus.com/v1/recurrence/cancel \
-X POST \
-H 'merchant: 8b03432e-385b-4670-8d06-064591096795' \
-H 'sign: fe99035f86fa436181717b302b95bacff1' \
-H 'Content-Type: application/json' \
-d '{
"uuid": "8b03432e-385b-4670-8d06-064591096795"
}'
COPYResponse
Response parameters
Object of payment - watchResponse example
1{
2 "state": 0,
3 "result": {
4 "uuid": "bbe5ce96-1126-4843-a0d2-b432e77669c2",
5 "name": "Access to personal account",
6 "order_id": "1487555",
7 "amount": "5",
8 "currency": "USD",
9 "payer_currency": "USDT",
10 "payer_amount_usd": "5.00",
11 "payer_amount": "5.00",
12 "url_callback": null,
13 "discount_days": "30",
14 "discount_amount": "50.00",
15 "end_of_discount": null,
16 "period": "weekly",
17 "status": "wait_accept",
18 "url": "https://pay.cryptomus.com/pay/bbe5ce96-1126-4843-a0d2-b432e77669c2",
19 "last_pay_off": null
20 }
21}
22
COPY