Request Payment

Purpose

Deliverect Pay's API surfaces an endpoint for channels to request a payment. The endpoint supports two mode types redirect or token

Overview

The format for requesting a payment is outlined as below;

  1. Channel → Deliverect Pay — the payment request specifies a mode of either redirect or token(card data is not transmitted in either case)
  2. Deliverect Pay → Payment Service Provider — a redirect URL is returned or funds are acquired (captured or pre-authorized based on captureModeof immediate or manual.
  3. Payment Service Provider → Deliverect Pay → Channel — the channel receives the payment identifier and status

Request a payment using a token

Once a token has been verified by calling the Create Token endpoint this can be used to acquire funds.

ℹ️

Capture mode

Fund acquisition can be requested in two capture modes:

ModeBehavior
immediateCapture the funds instantly (default).
manualPre-authorize the funds now; capture them later.

Path parameters

ParameterTypeDescription
channelLinkIdstringThe channel link the payment is requested under. Must match the link used at tokenization.

Request body

FieldDescriptionType
gatewayProfileId*Gateway configuration to route the payment through.string
mode*How the payment is funded.object
mode.type*Payment mode. Use token for token-based payments (other modes exist).string
mode.tokenId*The id of a verified token from Create Tokenstring
captureModeimmediate (default) or manual. See capture modes above.string
amount*Amount in the currency's minor units (e.g. 1000 = 10.00 USD).integer
currency*ISO 4217 currency code (e.g. USD).string
payer*Details of the paying customer.object
payer.name*The payer's display name.string
payer.reference*Channel-side customer reference — typically the same customerId used at tokenization.string

Response body

FieldTypeDescription
paymentIdstringIdentifier of the created payment. Use it to reference the payment in subsequent operations (e.g. capture, refund).
paymentStatusstringStatus of the payment, e.g. authorized. With captureMode: "immediate" funds are captured right away; with manual the payment remains authorized until captured.

Glossary of attributes


Path Params
string
required
Body Params
string
required

"id" retrieved via Get Payment Gateways endpoint

mode
object
required
int32
required
string
required
string

This field is deprecated. Use the payable field instead.

payer
object
payable
object
required
billingAddress
object
string
enum
Defaults to immediate
Allowed:
Responses

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json