Store credit callout

Store credit callout

Store credit callout

post/checkouts/store-credits

Request

  • Base URL
    https://api.digitalriver.com
  • URL
    https://api.digitalriver.com/checkouts/store-credits
  • Auth
    HTTP bearer

Request body

sessionIdstring

The identifier of the checkout session associated with the store credit request.

sessionUpstreamIdstring

The upstream identifier of the checkout session associated with the store credit request.

amountnumber double

The store credit amount.

namestring

The store credit name.

upstreamIdstring

The upstream store credit identifier.

iconUrlstring

The store credit image url.

lastFourstring

The last four digits of the store credit.

Example request

{
  "sessionId": "7765374748",
  "sessionUpstreamId": "8234373746",
  "amount": 5,
  "name": "Gift card",
  "upstreamId": "7654-2345-0987-123456",
  "iconUrl": "https://test.com/logo.png",
  "lastFour": "7831"
}

Response

200 OK

amountnumber double

The store credit amount.

upstreamIdstring

The upstream store credit identifier.

approvalboolean

Indicates whether the store credit .

Example response

{
  "amount": 5,
  "upstreamId": "7654-2345-0987-123456",
  "approval": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.