Manage payment methods
List and poll safe status, validate write-only configuration, enable or disable methods, and create provider connection handoffs.
Authorization
bearerAuth storeAuth Provide your SellApp API key as a bearer token.
In: header
Select the SellApp store for this API request.
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://sell.app/api/v2/payment-methods"{
"data": [
{
"id": "STRIPE",
"name": "Stripe",
"description": "string",
"category": "processor",
"connection_type": "oauth",
"status": "disconnected",
"enabled": true,
"health_status": "disconnected",
"configuration_supported": true,
"required_input": [
{
"name": "key_secret",
"type": "string",
"required": true,
"secret": true
}
],
"connect_url": "http://example.com",
"configuration_url": "http://example.com",
"status_url": "http://example.com",
"actionable_error": "string"
}
]
}{
"message": "Unauthenticated."
}{
"message": "This action is unauthorized."
}{
"message": "The given data was invalid.",
"errors": {
"data": [
"The data field is required."
]
}
}Authorization
bearerAuth storeAuth Provide your SellApp API key as a bearer token.
In: header
Select the SellApp store for this API request.
In: header
Path Parameters
Uppercase payment method identifier returned by the collection endpoint.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://sell.app/api/v2/payment-methods/STRIPE"{
"data": {
"id": "STRIPE",
"name": "Stripe",
"description": "string",
"category": "processor",
"connection_type": "oauth",
"status": "disconnected",
"enabled": true,
"health_status": "disconnected",
"configuration_supported": true,
"required_input": [
{
"name": "key_secret",
"type": "string",
"required": true,
"secret": true
}
],
"connect_url": "http://example.com",
"configuration_url": "http://example.com",
"status_url": "http://example.com",
"actionable_error": "string"
}
}{
"message": "Unauthenticated."
}{
"message": "This action is unauthorized."
}{
"message": "Rule not found."
}{
"message": "The given data was invalid.",
"errors": {
"data": [
"The data field is required."
]
}
}Authorization
bearerAuth storeAuth Provide your SellApp API key as a bearer token.
In: header
Select the SellApp store for this API request.
In: header
Path Parameters
Uppercase payment method identifier returned by the collection endpoint.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://sell.app/api/v2/payment-methods/STRIPE" \ -H "Content-Type: application/json" \ -d '{ "enabled": true }'{
"data": {
"id": "STRIPE",
"name": "Stripe",
"description": "string",
"category": "processor",
"connection_type": "oauth",
"status": "disconnected",
"enabled": true,
"health_status": "disconnected",
"configuration_supported": true,
"required_input": [
{
"name": "key_secret",
"type": "string",
"required": true,
"secret": true
}
],
"connect_url": "http://example.com",
"configuration_url": "http://example.com",
"status_url": "http://example.com",
"actionable_error": "string"
}
}{
"message": "Unauthenticated."
}{
"message": "This action is unauthorized."
}{
"message": "Rule not found."
}{
"message": "The given data was invalid.",
"errors": {
"data": [
"The data field is required."
]
}
}Authorization
bearerAuth storeAuth Provide your SellApp API key as a bearer token.
In: header
Select the SellApp store for this API request.
In: header
Path Parameters
Uppercase payment method identifier returned by the collection endpoint.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Write-only secret. SellApp never returns the stored value.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://sell.app/api/v2/payment-methods/STRIPE/configuration" \ -H "Content-Type: application/json" \ -d '{ "merchant_secure_key": "string", "merchant_tokenization_key": "string", "signing_key": "string", "currencies": [ "string" ] }'{
"data": {
"id": "STRIPE",
"name": "Stripe",
"description": "string",
"category": "processor",
"connection_type": "oauth",
"status": "disconnected",
"enabled": true,
"health_status": "disconnected",
"configuration_supported": true,
"required_input": [
{
"name": "key_secret",
"type": "string",
"required": true,
"secret": true
}
],
"connect_url": "http://example.com",
"configuration_url": "http://example.com",
"status_url": "http://example.com",
"actionable_error": "string"
}
}{
"message": "Unauthenticated."
}{
"message": "This action is unauthorized."
}{
"message": "Rule not found."
}{
"message": "The given data was invalid.",
"errors": {
"data": [
"The data field is required."
]
}
}Authorization
bearerAuth storeAuth Provide your SellApp API key as a bearer token.
In: header
Select the SellApp store for this API request.
In: header
Path Parameters
Uppercase payment method identifier returned by the collection endpoint.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://sell.app/api/v2/payment-methods/STRIPE/connect"{
"data": {
"payment_method": "string",
"connect_url": "http://example.com",
"status_url": "http://example.com",
"expires_at": "2019-08-24T14:15:22Z"
}
}{
"message": "Unauthenticated."
}{
"message": "This action is unauthorized."
}{
"message": "Rule not found."
}{
"message": "The given data was invalid.",
"errors": {
"data": [
"The data field is required."
]
}
}