Edit

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 ID you received from calling seq.

Fields

This is the same request as the request to create a payment link, except for the endpoint and different interpretations of these fields:

JSON fields Description
"billing": { "name": "", "company": "", "vatin": "", "gln": "", "email": "", "phone": "", "address": [], "city": "", "zip": "", "state": "", "country": "" } "shipping": { "name": "Hansen ApS", "company": "", "email": "", "phone": "", "address": [ "c/o Hans Hansen", "Rinkevej 14B" ], "city": "Kgs. Lyngby", "zip": "2800", "state": "", "country": "" } New addresses for the subscriber. An address is overwritten as a whole if a single field is present.
"items": []

This array may be omitted. If it is present it will generate an an initial charge. What this means is that along with verifying the payment credentials of the payer it will also automatically authorize the specified amount of money and create a charge.

"autocapture": false This defaults to true.