Payment Config API (1)
Download OpenAPI specification:Download
Use this API to manage Payment configuration.
Adyen adapter configuration
Returns the configuration of the adyen adapter.
Authorizations:
Responses
Response samples
- 200
{- "config": [
- {
- "timeout": 10,
- "provider_name": "adyen",
- "order_placement_delay": 4,
- "merchant_accounts": [
- "*"
], - "immediate_capture_payment_methods": [
- "alipay",
- "wechatpay_pos"
], - "capture_delay": "manual",
- "assume_refund_successful": false,
- "assume_unreferenced_refund_successful": false,
- "assume_void_successful": false,
- "wait_for_auth_notification": false,
- "track_revoke_requests": true
}
]
}
Update adyen adapter configuration
Updates the configuration of the adyen adapter.
Authorizations:
Request Body schema: application/json
Array of objects Contains the list of configurations supported by the adapter. | |||||||||||||||||||||||||
Array
|
Responses
Request samples
- Payload
{- "config": [
- {
- "timeout": 10,
- "provider_name": "adyen",
- "order_placement_delay": 4,
- "merchant_accounts": [
- "*"
], - "immediate_capture_payment_methods": [
- "alipay",
- "wechatpay_pos"
], - "capture_delay": "manual",
- "assume_refund_successful": false,
- "assume_unreferenced_refund_successful": false,
- "assume_void_successful": false,
- "wait_for_auth_notification": false,
- "track_revoke_requests": true
}
]
}
Audit history for Adyen Adapter configuration
Returns a list of the current and all previous values for the Adyen Adapter configuration.
Authorizations:
Responses
Response samples
- 200
{- "config": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "2019-12-25T00:00:00Z",
- "current": true,
- "value": [
- {
- "timeout": 10,
- "provider_name": "adyen",
- "order_placement_delay": 4,
- "merchant_accounts": [
- "*"
], - "immediate_capture_payment_methods": [
- "alipay",
- "wechatpay_pos"
], - "capture_delay": "manual",
- "assume_refund_successful": false,
- "assume_unreferenced_refund_successful": false,
- "assume_void_successful": false
}
]
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "2019-12-12T14:30:00Z",
- "value": [
- {
- "timeout": 100,
- "provider_name": "adyen",
- "order_placement_delay": 4,
- "merchant_accounts": [
- "*"
], - "immediate_capture_payment_methods": [
- "alipay",
- "wechatpay_pos"
], - "capture_delay": "manual",
- "assume_refund_successful": false,
- "assume_unreferenced_refund_successful": false,
- "assume_void_successful": false
}
]
}
]
}
Update cash drawer configuration
Updates the configuration of cash drawer.
Authorizations:
Request Body schema: application/json
expose_count_expected_amount | boolean When set to true the API will return the expected amount when responding to a record count request. |
Responses
Request samples
- Payload
{- "expose_count_expected_amount": true
}
Audit history for Cash Drawer configuration
Returns a list of the current and all previous values for the Cash Drawer configuration.
Authorizations:
Responses
Response samples
- 200
{- "expose_count_expected_amount": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": true
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": false
}
]
}
FAT PSP configuration
Returns the configuration of fat psp.
Authorizations:
Responses
Response samples
- 200
{- "external_providers": {
- "adyen": {
- "callback_url": "adyen_adapter",
- "timeout": 60
}, - "gift_card": {
- "timeout": 600
}, - "cybersource": {
- "timeout": 600,
- "api_key": "RNTMN123AQT50"
}
}, - "internal_providers": {
- "square": {
- "endpoint": "/psp_square.PSPSquare/Execute",
- "protocol": "grpc",
- "timeout": 30
}, - "store_credit": {
- "endpoint": "/store_credit.StoreCredit/Execute",
- "protocol": "grpc",
- "timeout": 30
}
}
}
Update FAT PSP configuration
Updates the configuration of fat psp.
Authorizations:
Request Body schema: application/json
braintree_partial_settlement_enabled | boolean Feature flag to enable or disable the partial settlement feature. |
object Map of available external payment providers that are being called via http. | |
object Map of available payment providers that are being called internally via rpc. |
Responses
Request samples
- Payload
{- "external_providers": {
- "adyen": {
- "callback_url": "adyen_adapter",
- "timeout": 60
}, - "gift_card": {
- "timeout": 600
}, - "cybersource": {
- "timeout": 600,
- "api_key": "RNTMN123AQT50"
}
}, - "internal_providers": {
- "square": {
- "endpoint": "/psp_square.PSPSquare/Execute",
- "protocol": "grpc",
- "timeout": 30
}, - "store_credit": {
- "endpoint": "/store_credit.StoreCredit/Execute",
- "protocol": "grpc",
- "timeout": 30
}
}
}
Audit history for FAT PSP configuration
Returns a list of the current and all previous values for the FAT PSP configuration.
Authorizations:
Responses
Response samples
- 200
{- "external_providers": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": {
- "adyen": {
- "callback_url": "adyen_adapter",
- "timeout": 60
}, - "gift_card": {
- "timeout": 600
}
}
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": {
- "adyen": {
- "callback_url": "adyen_adapter",
- "timeout": 600
}, - "gift_card": {
- "timeout": 6000
}
}
}
], - "internal_providers": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": {
- "square": {
- "endpoint": "/psp_square.PSPSquare/Execute",
- "protocol": "grpc",
- "timeout": 30
}, - "store_credit": {
- "endpoint": "/store_credit.StoreCredit/Execute",
- "protocol": "grpc",
- "timeout": 30
}
}
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": {
- "square": {
- "endpoint": "/psp_square.PSPSquare/Execute",
- "protocol": "grpc",
- "timeout": 300
}, - "store_credit": {
- "endpoint": "/store_credit.StoreCredit/Execute",
- "protocol": "grpc",
- "timeout": 300
}
}
}
]
}
Gift card configuration
Returns the configuration of gift card.
Authorizations:
Responses
Response samples
- 200
{- "provider": {
- "gift_card_ids": [
- "2000081"
], - "name": "gift_card",
- "timeout": 15,
- "api_key": "RNTMN123AQT50"
}, - "store_configurations": {
- "cash_out_enabled": false,
- "store_mapping": [
- {
- "store_id": "US01",
- "cash_out_enabled": true
}
]
}
}
Update gift card configuration
Updates the configuration of gift card.
Authorizations:
Request Body schema: application/json
required | object provider configuration for the tenant |
object gift card store configuration for the tenant |
Responses
Request samples
- Payload
{- "provider": {
- "gift_card_ids": [
- "2000081"
], - "name": "gift_card",
- "timeout": 15,
- "api_key": "RNTMN123AQT50"
}, - "store_configurations": {
- "cash_out_enabled": false,
- "store_mapping": [
- {
- "store_id": "US01",
- "cash_out_enabled": true
}
]
}
}
Audit history for Gift Card configuration
Returns a list of the current and all previous values for the Gift Card configuration.
Authorizations:
Responses
Response samples
- 200
{- "provider": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": {
- "gift_card_ids": [
- "2000081"
], - "name": "gift_card",
- "timeout": 15
}
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": {
- "gift_card_ids": [
- "2000081"
], - "name": "gift_card",
- "timeout": 150
}
}
], - "store_configurations": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": {
- "cash_out_enabled": "true,",
- "store_mapping": [
- {
- "store_id": "US01",
- "cash_out_enabled": false
}
]
}
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": {
- "cash_out_enabled": "false,",
- "store_mapping": [ ]
}
}
]
}
Response samples
- 200
{- "transaction_details_urls": {
}
}
Update NOM configuration
Updates the payment configuration of NOM.
Authorizations:
Request Body schema: application/json
transaction_details_urls | object Map of key/value where the key is the provider name and the value is the base url for payment links. |
Responses
Request samples
- Payload
{- "transaction_details_urls": {
}
}
Audit history for NOM configuration
Returns a list of the current and all previous values for the NOM configuration.
Authorizations:
Responses
Response samples
- 200
{- "transaction_details_urls": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": {
}
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": {
}
}
]
}
NewStore Checkout configuration
Returns the configuration of NewStore Checkout.
Authorizations:
Responses
Response samples
- 200
{- "http_timeout": 600,
- "encryption_pass_phrase": "you can use any random value",
- "supported_payment_methods": [
- "applepay",
- "paywithgoogle",
- "paypal",
- "scheme"
], - "tenant_url": "www.dodici.com",
- "tenant_url_label": "Dodici",
- "payment_methods": {
- "scheme": {
- "capture_billing_address": true
}
}, - "wallets": {
- "apple_pay": {
- "domain_name": "newstorecheckout.dodici.x.newstore.net",
- "merchant_identifier": "merchant.com.newstore.dodici.demo",
- "display_name": "Dodici",
- "supported_networks": {
- "default": [
- "visa",
- "masterCard",
- "amex",
- "discover"
]
},
}, - "google_pay": {
- "merchant_identifier": "Google merchant ID"
}, - "paypal": {
- "merchant_identifier": "PayPal merchant ID"
}
}, - "psps": {
- "adyen": {
- "merchant_account": "NewStorePOS"
}
}, - "enable_web_drop_in": true
}
Update NewStore Checkout configuration
Updates the configuration of NewStore Checkout.
Authorizations:
Request Body schema: application/json
http_timeout | integer Default: 10000 Maximum waiting time in milliseconds for an external HTTP request. MUST be smaller than gRPC timeout. |
encryption_pass_phrase | string Pass phrase used by the hash algorithm to generate the cart token. |
supported_payment_methods | Array of strings Payment methods that are supported by the retailer |
tenant_url | string The URL to the tenant website displayed to the customer when the payment completes. |
tenant_url_label | string The label that should be used instead of the website URL for the link when the payment completes. |
object Digital wallet configuration. | |
object Payment methods configuration. | |
object Payment Service Provider configuration. | |
enable_web_drop_in | boolean Default: false Indicates wether the Adyen Web DropIn should be used. |
Responses
Request samples
- Payload
{- "http_timeout": 600,
- "encryption_pass_phrase": "you can use any random value",
- "supported_payment_methods": [
- "applepay",
- "paywithgoogle",
- "paypal",
- "scheme"
], - "tenant_url": "www.dodici.com",
- "tenant_url_label": "Dodici",
- "payment_methods": {
- "scheme": {
- "capture_billing_address": true
}
}, - "wallets": {
- "apple_pay": {
- "domain_name": "newstorecheckout.dodici.x.newstore.net",
- "merchant_identifier": "merchant.com.newstore.dodici.demo",
- "display_name": "Dodici",
- "supported_networks": {
- "default": [
- "visa",
- "masterCard",
- "amex",
- "discover"
]
},
}, - "google_pay": {
- "merchant_identifier": "Google merchant ID"
}, - "paypal": {
- "merchant_identifier": "PayPal merchant ID"
}
}, - "psps": {
- "adyen": {
- "merchant_account": "NewStorePOS"
}
}, - "enable_web_drop_in": true
}
Audit history for NewStore Checkout configuration
Returns a list of the current and all previous values for the NewStore Checkout configuration.
Authorizations:
Responses
Response samples
- 200
{- "http_timeout": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": 600
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": 6000
}
], - "encryption_pass_phrase": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": "you can use any random value v2"
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": "you can use any random value v1"
}
], - "supported_payment_methods": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": [
- "applepay",
- "paywithgoogle",
- "paypal",
- "scheme"
]
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": [
- "applepay",
- "paywithgoogle",
- "paypal"
]
}
], - "tenant_url": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": "www.dodici.com"
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": "www.dodici.com"
}
], - "tenant_url_label": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": "Dodici"
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": "Dodici"
}
], - "wallets": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": {
- "apple_pay": null,
- "domain_name": "newstorecheckout.dodici.x.newstore.net",
- "merchant_identifier": "merchant.com.newstore.dodici.demo",
- "supported_networks": {
- "default": [
- "visa",
- "masterCard",
- "amex",
- "discover"
]
},
}, - "google_pay": {
- "merchant_identifier": "Google merchant ID"
}, - "paypal": {
- "merchant_identifier": "PayPal merchant ID"
}
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": {
- "apple_pay": null,
- "domain_name": "newstorecheckout.dodici.x.newstore.net",
- "merchant_identifier": "merchant.com.newstore.dodici.demo",
- "supported_networks": {
- "default": [
- "visa",
- "masterCard",
- "amex",
- "discover"
]
},
}, - "google_pay": {
- "merchant_identifier": "Google merchant ID"
}, - "paypal": {
- "merchant_identifier": "PayPal merchant ID"
}
}
], - "psps": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": {
- "adyen": {
- "merchant_account": "NewStorePOS"
}
}
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": {
- "adyen": {
- "merchant_account": "NewStorePOS"
}
}
}
], - "enable_web_drop_in": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": true
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": true
}
]
}
Payment Account configuration
Returns the configuration of Payment Account.
Authorizations:
Responses
Response samples
- 200
{- "default_capture_strategy": "ordered",
- "default_refund_strategy": "ordered",
- "available_strategies": {
- "gift_card": null,
- "ordered": {
- "payment_methods": [
- "credit_card",
- "store_credit",
- "cash"
]
}, - "store_credit": null
}, - "partial_unreferenced_refund_payment_invalidation": true,
- "add_gift_card_instrument_on_issue": true
}
Update Payment Account configuration
Updates the configuration of payment account.
Authorizations:
Request Body schema: application/json
default_capture_strategy | string the name of the default strategy for capture |
default_refund_strategy | string the name of the default strategy for refund |
available_strategies | object Mapping of strategy_name->configuration of the available strategies. For a list of available strategies, consult payment_account documentation |
partial_unreferenced_refund_payment_invalidation | boolean defines how unreferenced refunds affect existing payments. If set to true, invalidates only the amount for which the unreferenced refund was made. Otherwise, it invalidates all existing payments. |
add_gift_card_instrument_on_issue | boolean defines whether funds to process a new gift card refund are added to the account before or during the gift card issuing request. |
Responses
Request samples
- Payload
{- "default_capture_strategy": "ordered",
- "default_refund_strategy": "ordered",
- "available_strategies": {
- "gift_card": null,
- "ordered": {
- "payment_methods": [
- "credit_card",
- "store_credit",
- "cash"
]
}, - "store_credit": null
}, - "partial_unreferenced_refund_payment_invalidation": true,
- "add_gift_card_instrument_on_issue": true
}
Audit history for Payment Account configuration
Returns a list of the current and all previous values for the Payment Account configuration.
Authorizations:
Responses
Response samples
- 200
{- "default_capture_strategy": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": "ordered"
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": "ordered"
}
], - "default_refund_strategy": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": "ordered"
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": "ordered"
}
], - "available_strategies": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": {
- "gift_card": null,
- "ordered": {
- "payment_methods": [
- "credit_card",
- "store_credit",
- "cash"
]
}, - "store_credit": null
}
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": {
- "gift_card": null,
- "ordered": {
- "payment_methods": [
- "credit_card",
- "store_credit",
- "cash"
]
}, - "store_credit": null
}
}
], - "partial_unreferenced_refund_payment_invalidation": [
- {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": true
}
]
}
Update payment capture configuration
Updates the configuration of the payment capture.
Authorizations:
Request Body schema: application/json
use_charge_api | boolean Default: false Define whether captures are triggered based on logistic order events or explicitly via charge API. |
Responses
Request samples
- Payload
{- "use_charge_api": false
}
Audit history for Payment Capture configuration
Returns a list of the current and all previous values for the Payment Capture configuration.
Authorizations:
Responses
Response samples
- 200
{- "use_charge_api": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "2019-12-25T00:00:00Z",
- "current": true,
- "value": false
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "2019-12-12T14:30:00Z",
- "value": true
}
]
}
Update payment engine configuration
Updates the configuration of payment engine.
Authorizations:
Request Body schema: application/json
experimental_mode | boolean Default: false Enable experimental mode in payment engine. |
Responses
Request samples
- Payload
{- "experimental_mode": false
}
Audit history for Payment Engine configuration
Returns a list of the current and all previous values for the Payment Engine configuration.
Authorizations:
Responses
Response samples
- 200
{- "experimental_mode": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "2019-12-25T00:00:00Z",
- "current": true,
- "value": false
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "2019-12-12T14:30:00Z",
- "value": true
}
]
}
Payment options configuration
Returns the configuration of payment options.
Authorizations:
Responses
Response samples
- 200
{- "payment_options": [
- "stripe",
- "adyen",
- "adyen_terminal",
- "cash",
- "gift_card",
- "newstore_checkout",
- "square"
], - "refund_options": [
- "original",
- "gift_card",
- "e_gift_card",
- "credit_card",
- "external"
], - "store_mapping": [
- {
- "payment_options": [
- "adyen",
- "gift_card",
- "square"
], - "refund_options": [
- "original",
- "gift_card"
], - "store_id": "US01"
}
]
}
Update payment options configuration
Updates the configuration of payment options.
Authorizations:
Request Body schema: application/json
payment_options | Array of strings Items Enum: "stripe" "adyen" "adyen_terminal" "adyen_pay_by_link" "adyen_pos" "square" "cash" "gift_card" "newstore_checkout" "non_integrated" "verifone" "worldline" The default list of payment options that can be offered in a store. |
refund_options | Array of strings Items Enum: "original" "gift_card" "e_gift_card" "credit_card" "external" "non_integrated" "worldline" The default list of refund options that can be offered in a store. |
Array of objects Store-specific payment options configuration. It overrides the defaults for the configured store. | |
non_integrated_payment_methods | Array of strings The default list of non-integrated payment methods that can be offered in a store. |
object Definition of non-integrated payment methods to be referenced globally or per store |
Responses
Request samples
- Payload
{- "payment_options": [
- "stripe",
- "adyen",
- "adyen_terminal",
- "cash",
- "gift_card",
- "newstore_checkout",
- "square"
], - "refund_options": [
- "original",
- "gift_card",
- "e_gift_card",
- "credit_card",
- "external"
], - "store_mapping": [
- {
- "payment_options": [
- "adyen",
- "gift_card",
- "square"
], - "refund_options": [
- "original",
- "gift_card"
], - "store_id": "US01"
}
]
}
Audit history for Payment Options configuration
Returns a list of the current and all previous values for the Payment Options configuration.
Authorizations:
Responses
Response samples
- 200
{- "payment_options": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": [
- "stripe",
- "adyen",
- "adyen_terminal",
- "cash",
- "gift_card",
- "newstore_checkout",
- "square"
]
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": [
- "stripe",
- "adyen",
- "adyen_terminal",
- "cash",
- "gift_card",
- "newstore_checkout",
- "square"
]
}
], - "refund_options": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": [
- "original",
- "gift_card",
- "e_gift_card",
- "credit_card",
- "external"
]
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": [
- "original",
- "gift_card",
- "e_gift_card",
- "credit_card",
- "external"
]
}
], - "store_mapping": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": [
- {
- "payment_options": [
- "adyen",
- "adyen_terminal",
- "gift_card",
- "square"
], - "refund_options": [
- "original",
- "gift_card"
], - "store_id": "US01"
}
]
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": [
- {
- "payment_options": [
- "adyen",
- "adyen_terminal",
- "gift_card",
- "square"
], - "refund_options": [
- "original",
- "gift_card"
], - "store_id": "US01"
}
]
}
]
}
Payments watcher configuration
Returns the configuration of payments watcher.
Authorizations:
Responses
Response samples
- 200
{- "failed_capture_retry_enabled": true,
- "failed_refund_retry_enabled": false,
- "failed_revoke_retry_enabled": true,
- "failed_add_retry_enabled": true
}
Update payments watcher configuration
Updates the configuration of payments watcher.
Authorizations:
Request Body schema: application/json
failed_capture_retry_enabled | boolean When enabled will trigger automatic retries for failed capture operations. |
failed_refund_retry_enabled | boolean When enabled will trigger automatic retries for failed refund operations. |
failed_revoke_retry_enabled | boolean When enabled will trigger automatic retries for failed revoke operations. |
failed_add_retry_enabled | boolean When enabled will trigger automatic retries for failed add financial instrument operations. |
Responses
Request samples
- Payload
{- "failed_capture_retry_enabled": true,
- "failed_refund_retry_enabled": false,
- "failed_revoke_retry_enabled": true,
- "failed_add_retry_enabled": true
}
Audit history for Payments Watcher configuration
Returns a list of the current and all previous values for the Payments Watcher configuration.
Authorizations:
Responses
Response samples
- 200
{- "failed_capture_retry_enabled": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": true
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": true
}
], - "failed_refund_retry_enabled": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": false
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": false
}
], - "failed_revoke_retry_enabled": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": true
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": true
}
], - "failed_add_retry_enabled": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": true
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": true
}
]
}
PSP Adyen configuration
Returns the configuration of PSP Adyen.
Authorizations:
Responses
Response samples
- 200
{- "checkout_api": {
- "environment": "test",
- "timeout": 30
}, - "standard_api": {
- "timeout": 10
}, - "payment_reauthorization": {
- "authorization_expiration": 7,
- "enabled": true
}, - "pos": {
- "authorization_type": "PreAuth",
- "credentials": {
- "account": "NewStorePOS",
- "company_account": "NewStore"
}, - "environment": "test",
- "payment_subject": "Giovanna Dodici",
- "store_mapping": [
- {
- "adyen_store_id": "1001",
- "store_id": "US01"
}, - {
- "adyen_store_id": "1201",
- "store_id": "US02",
- "merchant_config": {
- "credentials": {
- "account": "NewStoreCOM",
- "company_account": "Dodici"
}
}
}
]
}
}
Update PSP Adyen configuration
Updates the configuration of PSP Adyen.
Authorizations:
Request Body schema: application/json
object The checkout Adyen API is used by NewStore Checkout. | |
object The standard Adyen API is used for payment reauthorizations. | |
object Specifies how the payment reauthorization should be performed. | |
object Defines the Associate App payment settings. |
Responses
Request samples
- Payload
{- "checkout_api": {
- "environment": "test",
- "timeout": 30
}, - "standard_api": {
- "timeout": 10
}, - "payment_reauthorization": {
- "authorization_expiration": 7,
- "enabled": true
}, - "pos": {
- "authorization_type": "PreAuth",
- "credentials": {
- "account": "NewStorePOS",
- "company_account": "NewStore"
}, - "environment": "test",
- "payment_subject": "Giovanna Dodici",
- "store_mapping": [
- {
- "adyen_store_id": "1001",
- "store_id": "US01"
}, - {
- "adyen_store_id": "1201",
- "store_id": "US02",
- "merchant_config": {
- "credentials": {
- "account": "NewStoreCOM",
- "company_account": "Dodici"
}
}
}
]
}
}
Audit history for PSP Adyen configuration
Returns a list of the current and all previous values for the PSP Adyen configuration.
Authorizations:
Responses
Response samples
- 200
{- "checkout_api": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
}
], - "standard_api": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
}
], - "payment_reauthorization": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": {
- "authorization_expiration": 7,
- "enabled": true
}
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": {
- "authorization_expiration": 1,
- "enabled": true
}
}
], - "pos": [
- {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": {
- "authorization_type": "PreAuth",
- "capture_type": "immediate",
- "credentials": {
- "account": "NewStorePOS",
- "company_account": "NewStore"
}, - "environment": "test",
- "payment_subject": "Giovanna Dodici",
- "store_mapping": [
- {
- "adyen_store_id": "1001",
- "store_id": "US01"
}, - {
- "adyen_store_id": "1201",
- "store_id": "US02",
- "merchant_config": {
- "credentials": {
- "account": "NewStoreCOM",
- "company_account": "Dodici"
}
}
}
]
}
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": {
- "authorization_type": "PreAuth",
- "capture_type": "immediate",
- "credentials": {
- "account": "NewStorePOS",
- "company_account": "NewStore"
}, - "environment": "test",
- "payment_subject": "Giovanna Dodici",
- "store_mapping": [
- {
- "adyen_store_id": "1001",
- "store_id": "US01"
}, - {
- "adyen_store_id": "1201",
- "store_id": "US02",
- "merchant_config": {
- "credentials": {
- "account": "NewStoreCOM",
- "company_account": "Dodici"
}
}
}
]
}
}
]
}
Update PSP Square configuration
Updates the configuration of PSP Square.
Authorizations:
Request Body schema: application/json
object Configuration parameters for the Square API. | |
Array of objects A list of related NewStore store IDs and their corresponding Square location IDs. NewStore Store IDs should be unique. |
Responses
Request samples
- Payload
{- "store_mapping": [
- {
- "store_id": "US01",
- "location_id": "1001"
}, - {
- "store_id": "JP01",
- "location_id": "1002"
}
]
}
Audit history for PSP Square configuration
Returns a list of the current and all previous values for the PSP Square configuration.
Authorizations:
Responses
Response samples
- 200
{- "api": [
- {
- "version": 3,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
}, - {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
}
], - "store_mapping": [
- {
- "version": 3,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "current": true,
- "value": [
- {
- "store_id": "US03",
- "location_id": "1003"
}, - {
- "store_id": "JP03",
- "location_id": "1003"
}
]
}, - {
- "version": 2,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": [
- {
- "store_id": "US02",
- "location_id": "1002"
}, - {
- "store_id": "JP02",
- "location_id": "1002"
}
]
}, - {
- "version": 1,
- "user_id": "b040334f-a6ea-4bfb-a3e0-eb1adce2052d",
- "inserted_at": "0001-01-01T00:00:00Z",
- "value": [
- {
- "store_id": "US01",
- "location_id": "1001"
}, - {
- "store_id": "JP01",
- "location_id": "1001"
}
]
}
]
}
Create a payment link for a customer to pay a cart
Returns an object that includes a url for paying a specific amount referencing a cart. If the cart totals change, a new link has to be created.
Authorizations:
Request Body schema: application/json
payment_reference required | string The payment reference |
store_id required | string Id of the store |
amount required | number Amount of the order in cents |
currency required | string Currency of the order |
country_code | string Default: "ZZ" Two-letter country code to determine the payment options displayed. Unknown country is assumed when omitted. |
object Customer object for optional risk assessment. If not present, it's captured from the shopper before paying. |
Responses
Request samples
- Payload
{- "payment_reference": "ref",
- "amount": 5000,
- "currency": "USD",
- "store_id": "7c9f2605-9fb3-5444-8fee-47fe51608efe",
- "country_code": "US"
}
Response samples
- 200
{- "status": "active",
- "reusable": false,
- "id": "PLF7CEC74DABD9295D",
- "expires_at": "2022-09-03T07:48:50.000Z"
}