Payment Requests
Endpoints
The Payment Request Object
Attributes
The ID of the payment request
The secret token of the payment request
NEW
SUCCEEDED
CANCELED
An ISO timestamp indicating when the payment request was created
An ISO Timestamp indicating when the payment request was last updated
Optional Attributes
Collapse all{"_id": "string","secret": "string","amount": 10.5,"currency": "EUR","checkoutId": "string","subscriptionId": "string","paymentPlanId": "string","paymentGatewayId": "string","reference": "string","processors": [{"payentGatewayType": "stripe","paymentGatewayId": "string","reference": "string","redirectUrl": "string","data": [],"createdAt": "2030-01-23T23:00:00.123Z"}],"status": "NEW","history": [{"type": "payment_request.created","date": "2030-01-23T23:00:00.123Z","data": []}],"applications": [{"amount": 10.5,"method": "deposit"}],"customer": {"customerId": "string","country": "string"},"sellerId": "string","expiresAt": "2030-01-23T23:00:00.123Z","createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}
Create a Payment Request
Payload
The secret of the transaction
Optional Attributes
Collapse all{"checkoutId": "string","transactionId": "string","secret": "string"}
{"_id": "string","secret": "string","amount": 10.5,"currency": "EUR","checkoutId": "string","subscriptionId": "string","paymentPlanId": "string","paymentGatewayId": "string","reference": "string","processors": [{"payentGatewayType": "stripe","paymentGatewayId": "string","reference": "string","redirectUrl": "string","data": [],"createdAt": "2030-01-23T23:00:00.123Z"}],"status": "NEW","history": [{"type": "payment_request.created","date": "2030-01-23T23:00:00.123Z","data": []}],"applications": [{"amount": 10.5,"method": "deposit"}],"customer": {"customerId": "string","country": "string"},"sellerId": "string","expiresAt": "2030-01-23T23:00:00.123Z","createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}
Get a Payment Request
Query
Secret of the payment request
{"_id": "string","secret": "string","amount": 10.5,"currency": "EUR","checkoutId": "string","subscriptionId": "string","paymentPlanId": "string","paymentGatewayId": "string","reference": "string","processors": [{"payentGatewayType": "stripe","paymentGatewayId": "string","reference": "string","redirectUrl": "string","data": [],"createdAt": "2030-01-23T23:00:00.123Z"}],"status": "NEW","history": [{"type": "payment_request.created","date": "2030-01-23T23:00:00.123Z","data": []}],"applications": [{"amount": 10.5,"method": "deposit"}],"customer": {"customerId": "string","country": "string"},"sellerId": "string","expiresAt": "2030-01-23T23:00:00.123Z","createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}
Get Payment Requests
Query
Filter payment requests by customer ID
Filter payment requests by checkout ID
Filter payment requests by status
Filter payment requests by origin
The number of objects to skip for the requested result
A limit on the number of objects to be returned. Can range between 1 and 1000.
{"docs": [{"_id": "string","secret": "string","amount": 10.5,"currency": "EUR","checkoutId": "string","subscriptionId": "string","paymentPlanId": "string","paymentGatewayId": "string","reference": "string","processors": [{"payentGatewayType": "stripe","paymentGatewayId": "string","reference": "string","redirectUrl": "string","data": [],"createdAt": "2030-01-23T23:00:00.123Z"}],"status": "NEW","history": [{"type": "payment_request.created","date": "2030-01-23T23:00:00.123Z","data": []}],"applications": [{"amount": 10.5,"method": "deposit"}],"customer": {"customerId": "string","country": "string"},"sellerId": "string","expiresAt": "2030-01-23T23:00:00.123Z","createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}],"total": 1}
Receive Processor Info
Payload
The ID of the payment gateway the client intents to use
Optional Attributes
Collapse all{"paymentGatewayId": "string","returnUrl": "string"}
{"payentGatewayType": "stripe","paymentGatewayId": "string","reference": "string","redirectUrl": "string","data": [],"createdAt": "2030-01-23T23:00:00.123Z"}
Confirm a Payment Request
Payload
The secret of the payment gateway responsible for the payment
Optional Attributes
Collapse all{"gatewaySecret": "string","reference": "string","paymentStatus": "SUCCEEDED","paymentMethod": "visa","paymentMethodVariant": "applepay"}
{"_id": "string","secret": "string","amount": 10.5,"currency": "EUR","checkoutId": "string","subscriptionId": "string","paymentPlanId": "string","paymentGatewayId": "string","reference": "string","processors": [{"payentGatewayType": "stripe","paymentGatewayId": "string","reference": "string","redirectUrl": "string","data": [],"createdAt": "2030-01-23T23:00:00.123Z"}],"status": "NEW","history": [{"type": "payment_request.created","date": "2030-01-23T23:00:00.123Z","data": []}],"applications": [{"amount": 10.5,"method": "deposit"}],"customer": {"customerId": "string","country": "string"},"sellerId": "string","expiresAt": "2030-01-23T23:00:00.123Z","createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}
Change Payment Request Payment Status
Payload
The new payment status
SUCCEEDED
FAILED
The secret of the payment gateway responsible for the payment
{"paymentStatus": "SUCCEEDED","gatewaySecret": "string"}
{"_id": "string","secret": "string","amount": 10.5,"currency": "EUR","checkoutId": "string","subscriptionId": "string","paymentPlanId": "string","paymentGatewayId": "string","reference": "string","processors": [{"payentGatewayType": "stripe","paymentGatewayId": "string","reference": "string","redirectUrl": "string","data": [],"createdAt": "2030-01-23T23:00:00.123Z"}],"status": "NEW","history": [{"type": "payment_request.created","date": "2030-01-23T23:00:00.123Z","data": []}],"applications": [{"amount": 10.5,"method": "deposit"}],"customer": {"customerId": "string","country": "string"},"sellerId": "string","expiresAt": "2030-01-23T23:00:00.123Z","createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}
Verify a payment request
Payload
The ID of the payment gateway the client intents to use
Optional Attributes
Collapse all{"paymentGatewayId": "string","data": []}
{"_id": "string","secret": "string","amount": 10.5,"currency": "EUR","checkoutId": "string","subscriptionId": "string","paymentPlanId": "string","paymentGatewayId": "string","reference": "string","processors": [{"payentGatewayType": "stripe","paymentGatewayId": "string","reference": "string","redirectUrl": "string","data": [],"createdAt": "2030-01-23T23:00:00.123Z"}],"status": "NEW","history": [{"type": "payment_request.created","date": "2030-01-23T23:00:00.123Z","data": []}],"applications": [{"amount": 10.5,"method": "deposit"}],"customer": {"customerId": "string","country": "string"},"sellerId": "string","expiresAt": "2030-01-23T23:00:00.123Z","createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}