Create new integration
POST/payments/custom-provider/provider
API to create a new association for an app and location
Request
API Version
v3Location id
- application/json
- Body
- Example (auto)
Bodyrequired
The name of the custom provider
Description of payment gateway. Shown on the payments integrations page as subtext
This url will be loaded in iFrame to start a payment session.
The url used for querying payments related events. Ex. verify, refund, subscription etc.
Public image url for logo of the payment gateway displayed on the payments integrations page.
Whether the config supports subscription schedule or not. true represents config supports subscription schedule
{
"name": "Company Paypal Integration",
"description": "This payment gateway supports payments in India via UPI, Net banking, cards and wallets.",
"paymentsUrl": "https://testpayment.paypal.com",
"queryUrl": "https://testsubscription.paypal.com",
"imageUrl": "https://testsubscription.paypal.com",
"supportsSubscriptionSchedule": true
}
Successful response
- application/json
- Schema
- Example (auto)
Schema
The name of the custom provider
Description of payment gateway. Shown on the payments integrations page as subtext
This url will be loaded in iFrame to start a payment session.
The url used for querying payments related events. Ex. verify, refund, subscription etc.
Public image url for logo of the payment gateway displayed on the payments integrations page.
The unique identifier for the custom provider.
Location id
The application id of marketplace
Payment provider details.
Whether the config is deleted or not. true represents config is deleted
The creation timestamp of the custom provider.
The last update timestamp of the custom provider.
Trace id of the custom provider.
{
"name": "Company Paypal Integration",
"description": "This payment gateway supports payments in India via UPI, Net banking, cards and wallets.",
"paymentsUrl": "https://testpayment.paypal.com",
"queryUrl": "https://testsubscription.paypal.com",
"imageUrl": "https://testsubscription.paypal.com",
"_id": "662a44ad19a2a44d3cd9d749",
"locationId": "Lk3nlfk4lxlelVEwcW",
"marketplaceAppId": "65f0b217a05c774da7f1efa5",
"paymentProvider": "{ live: { liveMode: true }, test: { liveMode: false, apiKey: \"y5ZQxryRFXZHvUJZdLXXXXXX\", publishableKey: \"rzp_test_zPRoVMLOa0A9wo\" }}",
"deleted": true,
"createdAt": "2023-11-20T10:23:36.515Z",
"updatedAt": "2024-01-23T09:57:04.846Z",
"traceId": "302d2cf4-1ba0-4bf5-bc3b-f8fa76fda58a"
}