Skip to content

Get Invoice

Ini merupakan endpoint untuk mendapatkan data invoice berdasarkan customer_id yang dikirimkan.

Endpoint

GET: /payment-vendor/api/v1/invoice

json
{
    "Content-type": "application/json"
}

Authorization

Authorization diperlukan untuk mengakses endpoint ini. Authorization yang digunakan adalah bearer token.

Query Parameters

KeyDescriptionTypeRequired
customer_idIdentifier yang digunakan untuk mencari data invoice berdasarkan data customer_id.StringFalse

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."
    }
}