Payment Execution API
The following endpoints are managed by the dedicated Payment Execution service in order to facilitate PCI-Compliance . Please review Socotra's PCI Compliance Statement for more information.
| Action | Endpoint |
|---|---|
| Fetch Payment Provider Configurations | GET/payment-execution/{tenantLocator}/paymentProviders/list |
| Fetch Payment Provider Configuration | GET/payment-execution/{tenantLocator}/paymentProviders/{locator} |
| Add Payment Provider Configuration | POST/payment-execution/{tenantLocator}/paymentProviders |
| Update Payment Provider Configuration | PATCH/payment-execution/{tenantLocator}/paymentProviders/{locator} |
| Inactivate Payment Provider Configuration | PATCH/payment-execution/{tenantLocator}/paymentProviders/{locator}/inactivate |
| Fetch Payment Execution Configuration For Financial Instrument | GET/payment-execution/{tenantLocator}/financialInstruments/{financialInstrumentLocator} |
| Add Payment Execution Configuration For Financial Instrument | POST/payment-execution/{tenantLocator}/financialInstruments/{financialInstrumentLocator} |
| Update Payment Execution Configuration For Financial Instrument | PATCH/payment-execution/{tenantLocator}/financialInstruments/{financialInstrumentLocator} |
Providers
Fetch Payment Provider Configurations
Fetch Payment Provider Configurations
fetchPaymentProviderConfigurationsGET
/payment-execution/{tenantLocator}/paymentProviders/listParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
paymentServiceProvider | query | Enum? braintree | braintreeSandbox | stripe | stripeTest | No | |
offset | query | integer? | No | |
count | query | integer? | No |
Response:
ListPageResponsePaymentProviderSecurity Group:
payment-providersPermission:
listListPageResponsePaymentProvider
Required properties
| Property | Type | Description |
|---|---|---|
listCompleted | boolean | |
items | PaymentProvider[] |
Fetch Payment Provider Configuration
Fetch Payment Provider Configuration
fetchPaymentProviderConfigurationGET
/payment-execution/{tenantLocator}/paymentProviders/{locator}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Response:
PaymentProviderSecurity Group:
payment-providersPermission:
readAdd Payment Provider Configuration
Add Payment Provider Configuration
addPaymentProviderConfigurationPOST
/payment-execution/{tenantLocator}/paymentProvidersParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes |
Request:
oneOf<BraintreeConfigurationRequest, StripeConfigurationRequest>Response:
PaymentProviderSecurity Group:
payment-providersPermission:
writeUpdate Payment Provider Configuration
Update Payment Provider Configuration
updatePaymentProviderConfigurationPATCH
/payment-execution/{tenantLocator}/paymentProviders/{locator}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Request:
oneOf<BraintreeConfigurationRequest, StripeConfigurationRequest>Response:
PaymentProviderSecurity Group:
payment-providersPermission:
writeBraintreeConfigurationRequest
Required properties
| Property | Type | Description |
|---|---|---|
paymentProviderState | Enum active | inactive | |
merchantId | string | |
paymentServiceProvider | Enum braintree | braintreeSandbox | stripe | stripeTest | |
privateKey | string | |
publicKey | string |
StripeConfigurationRequest
Required properties
| Property | Type | Description |
|---|---|---|
paymentProviderState | Enum active | inactive | |
paymentServiceProvider | Enum braintree | braintreeSandbox | stripe | stripeTest | |
secretKey | string |
Inactivate Payment Provider Configuration
Inactivate Payment Provider Configuration
inactivatePaymentProviderConfigurationDeprecatedPATCH
/payment-execution/{tenantLocator}/paymentProviders/{locator}/inactivateParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
Response:
PaymentProviderSecurity Group:
payment-providersPermission:
writePaymentProvider
Required properties
| Property | Type | Description |
|---|---|---|
locator | ulid | |
paymentProviderState | Enum active | inactive | |
paymentServiceProvider | Enum braintree | braintreeSandbox | stripe | stripeTest |
Financial Instruments
Fetch Payment Execution Configuration For Financial Instrument
Fetch Payment Execution Configuration For Financial Instrument
fetchPaymentExecutionConfigurationForFinancialInstrumentGET
/payment-execution/{tenantLocator}/financialInstruments/{financialInstrumentLocator}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
financialInstrumentLocator | path | ulid | Yes |
Security Group:
financial-instrumentsPermission:
readAdd Payment Execution Configuration For Financial Instrument
Add Payment Execution Configuration For Financial Instrument
addPaymentExecutionConfigurationForFinancialInstrumentPOST
/payment-execution/{tenantLocator}/financialInstruments/{financialInstrumentLocator}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
financialInstrumentLocator | path | ulid | Yes |
Security Group:
financial-instrumentsPermission:
writeUpdate Payment Execution Configuration For Financial Instrument
Update Payment Execution Configuration For Financial Instrument
updatePaymentExecutionConfigurationForFinancialInstrumentPATCH
/payment-execution/{tenantLocator}/financialInstruments/{financialInstrumentLocator}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
financialInstrumentLocator | path | ulid | Yes |
Security Group:
financial-instrumentsPermission:
writeFinancialInstrumentConfigurationRequest
Required properties
| Property | Type | Description |
|---|---|---|
paymentProviderLocator | ulid | |
offlinePaymentToken | string |
Optional properties
| Property | Type | Description |
|---|---|---|
externalAccountNumber | string? |
FinancialInstrumentConfigurationResponse
Required properties
| Property | Type | Description |
|---|---|---|
paymentInstrumentLocator | ulid | |
paymentProviderLocator | ulid |
Optional properties
| Property | Type | Description |
|---|---|---|
externalAccountNumber | string? |