Appearance
Get Invoice
Ini merupakan endpoint untuk mendapatkan data invoice berdasarkan customer_id yang dikirimkan.
Endpoint
GET: /payment-vendor/api/v1/invoice
Header
json
{
"Content-type": "application/json"
}Authorization
Authorization diperlukan untuk mengakses endpoint ini. Authorization yang digunakan adalah bearer token.
Query Parameters
| Key | Description | Type | Required |
|---|---|---|---|
| customer_id | Identifier yang digunakan untuk mencari data invoice berdasarkan data customer_id. | String | False |
Response
json
{
"data": {
"customer": {
"address": "Jl. Example",
"name": "Name Example",
"phone": "082123456789",
},
"invoice": {
"due_date": "2024-01-01"
},
"organization": {
"name": "KPSPAMS Example"
}
}
}json
{
"error": {
"code": 404,
"errors": [
{
"message": "Data tidak ditemukan.",
"title": "Not Found"
}
],
"title": "Not Found."
}
}json
{
"error": {
"code": 401,
"errors": [
{
"message": "Unauthenticated.",
"title": "auth"
}
],
"title": "Unauthenticated."
}
}