Invoices
Last updated
Last updated
GET /api_user/api/v1/invoices HTTP/1.1
Host: papelship.com
x-api-key: YOUR_API_KEY
x-store-hash: YOUR_API_KEY
Accept: */*
{
"success": true,
"invoices": [
{
"id": 5001,
"invoice_id": "INV-2024-001",
"customer_email": "[email protected]",
"total_cents": 4999,
"currency": "USD",
"status": "completed",
"payment_method": "stripe",
"created_at": "2024-12-20T12:00:00Z",
"items_count": 1
}
]
}GET /api_user/api/v1/invoices/{invoiceId} HTTP/1.1
Host: papelship.com
x-api-key: YOUR_API_KEY
x-store-hash: YOUR_API_KEY
Accept: */*
{
"success": true,
"invoice": {
"id": 5001,
"invoice_id": "INV-2024-001",
"customer_email": "[email protected]",
"total_cents": 4999,
"currency": "USD",
"status": "completed",
"payment_method": "stripe",
"created_at": "2024-12-20T12:00:00Z",
"items_count": 1,
"items": [
{
"product_id": 1,
"quantity": 1,
"price_cents": 1,
"name": "text"
}
]
}
}POST /api_user/api/v1/invoices/{invoiceId}/complete HTTP/1.1
Host: papelship.com
x-api-key: YOUR_API_KEY
x-store-hash: YOUR_API_KEY
Accept: */*
{
"success": true
}POST /api_user/api/v1/invoices/{invoiceId}/refund HTTP/1.1
Host: papelship.com
x-api-key: YOUR_API_KEY
x-store-hash: YOUR_API_KEY
Accept: */*
{
"success": true
}PATCH /api_user/api/v1/invoices/{invoiceId}/items HTTP/1.1
Host: papelship.com
x-api-key: YOUR_API_KEY
x-store-hash: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 14
{
"items": [
{}
]
}{
"success": true
}