Manage subscription payments

Update Subscription Payment Option

post

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
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

Update Subscription Payment Source

post

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
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