Manage subscription payments
This will associate new billing option to existing subscription by payment option
Path parameters
subIdstringRequired
Subscription Id
Header parameters
tokenstringRequired
Basic authorization (dispatch Key and Secret) or Full access token
Body
paymentOptionIdstringRequired
Payment option id
isShippingSameAsBillingbooleanOptional
The shipping address of subscription should be updated same as billing address. The default value is true.
Responses
202
Accepted
400
* Bad request
application/json
401
Please verify your API key and secret (if applicable) is correct.
403
* Access Denied
application/json
404
* Not found
application/json
post
POST /v1/subscriptions/{subId}/payment-option HTTP/1.1
Host: api.digitalriver.com
token: text
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"paymentOptionId": "text",
"isShippingSameAsBilling": true
}
No content
This will associate new billing option to existing subscription by payment source
Path parameters
subIdstringRequired
Subscription Id
Header parameters
tokenstringRequired
Basic authorization (dispatch Key and Secret) or Full access token
Body
sourceIdstringRequired
Payment source id
isShippingSameAsBillingbooleanOptional
The shipping address of subscription should be updated same as billing address.The default is true.
Responses
202
Accepted
400
* Bad request
application/json
401
Please verify your API key and secret (if applicable) is correct.
403
* Access Denied
application/json
404
* Not found
application/json
post
POST /v1/subscriptions/{subId}/payment-source HTTP/1.1
Host: api.digitalriver.com
token: text
Content-Type: application/json
Accept: */*
Content-Length: 50
{
"sourceId": "text",
"isShippingSameAsBilling": true
}
No content
Last updated