Renew Subscriber
Renewing a subscriber is the same as creating a subscriber, excepting that you are updating the details of an existing one rather than creating a new one. This primarily allows your subscribers to change their payment details when, for example, their cards expire, but it also allows you to change their details (address, etc.) in the process.
Request
POST
https://api.scanpay.dk/v2/{shopid}:sub:{subid}/renew
- subid is the subscriber ID you received when synchronizing.
Fields
Excepting the endpoint, this is the same request as the create payment link request with 2 key differences:
| JSON fields | Description |
|---|---|
|
This object comes from the create subscriber request and allows you to change the reference. Changing the reference is an extremely bad idea. |
|
This array may be omitted. If it is present it will generate what is known an an initial charge. What this means is that along with verifying the payment credentials of the payer it will also automatically authorize the sprecified amount of money and create a charge. |