- Start your Apidog journey
- Sample APIs
- Users
- Ecommerce
- Profile
- Features Group
- Features
- Order
- Order web
- Appointment
- Quotation
- Plan
- Addresses
- Watch list Web
- Dashboard Carts
- Capabilities
- Product
- Production Line
- Attribute
- Recipes
- Group
- Review
- Branch
- Create Branch
- Update Branch By Id
- Get Branch By Id
- Get Branch All
- Get Branchs with pagination
- Delete Branch By Id
- Bulk Delete Branches
- Get Web Branch By Coordinates
- Get All Web Branch With Pagination
- Get All Web Branch
- Import Branch Zones
- Get Import Branch Zones Example
- Get Branch Zones File
- Import Branch Products
- Get Import Branch Products Example
- Get Branch Products File
- Link To Branches
- Addons
- Get Web Product By Id
- Get Web Product By Criteria
- Create Product
- Get Product By Id
- Get Product By Criteria
- Link Product By Id to Branches
- Update Product By Id
- Link Product By Id to Production Line
- Delete Product By Id
- Delete Duplicated Products
- Category
- Unit
- Contact
- Payment
- Setup
- Config
- Settings
- Cart
- Ticket
- Coupon
- Checkout
- Survey
- Truncate Collection ListDELETE
- Fix Product AttributesPUT
- Files
- Cache
- subscriptionsGET
- Untitled EndpointPOST
Untitled Endpoint Copy
Developing
POST
http://localhost:3000/payments
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:3000/payments' \
--header 'x-client: your-client-id-here' \
--header 'Content-Type: application/json' \
--header 'x-access-token;' \
--data-raw '{
"provider": "stripe",
"order": {
"productType": "product",
"productId": "prod_123",
"email": "test@example.com",
"username": "testuser",
"currency": "USD",
"type": "payment",
"items": [
{
"productId": "prod_123",
"productSKU": "SKU001",
"productName": "Test Product",
"unitPrice": 1000,
"quantity": 1
}
],
"successURL": "https://example.com/success",
"cancelURL": "https://example.com/cancel"
}
}'
Response Response Example
{}
Request
Authorization
API Key
Add parameter in header
x-access-token
Example:
x-access-token: ********************
or
Header Params
Content-Type
stringÂ
required
Example:
application/json
x-client
stringÂ
required
Example:
your-client-id-here
x-access-token
stringÂ
required
Example:
your-access-token-here
Body Params application/json
provider
stringÂ
required
order
objectÂ
required
productType
stringÂ
required
productId
stringÂ
required
email
stringÂ
required
username
stringÂ
required
currency
stringÂ
required
type
stringÂ
required
items
array [object {5}]Â
required
successURL
stringÂ
required
cancelURL
stringÂ
required
Examples
Responses
🟢200Success
application/json
Body
object {0}
Modified at 2025-06-22 13:10:29