Sources

The Sources resource in the Digital River API allows for representing and managing customer payment methods. It is crucial in facilitating transactions by securely storing relevant payment details. Businesses can efficiently create charges using the Sources resource, ensuring a seamless payment experience for their customers. See Source basics for more information.

Gets a source by identifier

get

Retrieve the details of a source by supplying its unique identifier.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Source identifier

Responses
200

OK.

application/json
get
/sources/{id}

Posts a source

post

Create a secondary source.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
paymentSessionIdstringOptional

Unique identifier of the session

Example: {{checkout_session-id}}
amountnumber · doubleOptional

The amount associated to the order

Example: 20
typestring · enumRequired

The type of source

Example: customerCreditPossible values:
upstreamIdstringOptional

Unique identifier associated to an upstream system

Example: custCredit_orderId_16008796
customerCreditobject · CustomerCreditOptional
Responses
post
/sources

Last updated