- 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
- 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
Create Payment
POST
{{ecommercev2_url}}/payments
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '{{ecommercev2_url}}/payments' \
--header 'x-client: {{client}}' \
--header 'accept-language: {{acceptLanguage}}' \
--header 'Content-Type: application/json' \
--header 'x-access-token;' \
--data-raw '{
"paymentMethod": "bank_transfer",
"bankName": "Chase Bank",
"iban": "US12345678901234567890",
"holderName": "John Doe",
"status": "pending",
"invoiceId": "67fcecb341e8715835a41e8a",
"referenceNumber": "REF-67890",
"amount": 200.00,
"account": "Main Account",
"note": "Note text goes here",
"attachments": [
{
"_id": "507f1f77bcf86cd799439012",
"path": "https://example.com/images/mens-accessories-2.jpg"
}
]
}'
Response Response Example
{}
Request
Authorization
API Key
Add parameter in header
x-access-token
Example:
x-access-token: ********************
or
Header Params
x-access-token
stringÂ
required
Example:
{{admin-token}}
x-client
stringÂ
required
Example:
{{client}}
accept-language
stringÂ
required
Example:
{{acceptLanguage}}
Body Params application/json
paymentMethod
stringÂ
required
bankName
stringÂ
required
iban
stringÂ
required
holderName
stringÂ
required
status
stringÂ
required
invoiceId
stringÂ
required
referenceNumber
stringÂ
required
amount
integerÂ
required
account
stringÂ
required
note
stringÂ
required
attachments
array [object {2}]Â
required
_id
stringÂ
optional
path
stringÂ
optional
Examples
Responses
🟢200Success
application/json
Body
object {0}
Modified at 2025-04-14 11:34:08