Create payment

POST https://us-central1-appgregator.cloudfunctions.net/xendit/payment/transaction/create-payment/

Headers

Name
Type
Description

x-api-key*

123

Request Body

Name
Type
Description

name*

String

your appgregator project name

connection_name*

String

your appgregator connection name

invoice_id*

String

your invoice name or id

payment_method*

String

INVOICE_TRANSFER_VA

email*

String

Email of the end customer you are charging. If you wish to send email notifications to your end users, please provide values in the customer object.

success_redirect_url*

String

URL that the end customer will be redirected to upon successful invoice payment. Example : https://yourcompany.com/example_item/10/success_page.

failure_redirect_url*

String

URL that end user will be redirected to upon expiration of this invoice. Example : https://yourcompany.com/example_item/10/failed_checkout.

{
    "id": "62987c3ff6a7adcb494fa4e4",
    "external_id": "ronald@importir.co-INV0064-02090046",
    "user_id": "5f150f065ed52e400fce2715",
    "status": "PENDING",
    "merchant_name": "JARINGAN DISTRIBUSI NASIONAL PT",
    "merchant_profile_picture_url": "https://xnd-companies.s3.amazonaws.com/prod/1601025270367_320.jpg",
    "amount": 4004950,
    "payer_email": "ronald@importir.co",
    "description": "INVOICE ronald@importir.co-INV0064-02090046 | Bill : 4.000.000,00 | Services Fee : 4.500,00 | ppn, 10% from Service Fee : 450,00 | Total Services Fee : 4.950,00",
    "expiry_date": "2022-06-11T09:00:47.083Z",
    "invoice_url": "https://checkout-staging.xendit.co/web/62987c3ff6a7adcb494fa4e4",
    "available_banks": [
        {
            "bank_code": "MANDIRI",
            "collection_type": "POOL",
            "transfer_amount": 4004950,
            "bank_branch": "Virtual Account",
            "account_holder_name": "JARINGAN DISTRIBUSI NASIONAL PT",
            "identity_amount": 0
        },
        {
            "bank_code": "BRI",
            "collection_type": "POOL",
            "transfer_amount": 4004950,
            "bank_branch": "Virtual Account",
            "account_holder_name": "JARINGAN DISTRIBUSI NASIONAL PT",
            "identity_amount": 0
        },
        {
            "bank_code": "BNI",
            "collection_type": "POOL",
            "transfer_amount": 4004950,
            "bank_branch": "Virtual Account",
            "account_holder_name": "JARINGAN DISTRIBUSI NASIONAL PT",
            "identity_amount": 0
        },
        {
            "bank_code": "PERMATA",
            "collection_type": "POOL",
            "transfer_amount": 4004950,
            "bank_branch": "Virtual Account",
            "account_holder_name": "JARINGAN DISTRIBUSI NASIONAL PT",
            "identity_amount": 0
        },
        {
            "bank_code": "BCA",
            "collection_type": "POOL",
            "transfer_amount": 4004950,
            "bank_branch": "Virtual Account",
            "account_holder_name": "JARINGAN DISTRIBUSI NASIONAL PT",
            "identity_amount": 0
        }
    ],
    "available_retail_outlets": [],
    "available_ewallets": [],
    "available_direct_debits": [],
    "available_paylaters": [],
    "should_exclude_credit_card": true,
    "should_send_email": true,
    "success_redirect_url": "https://us-central1-appregator-f7d7a.cloudfunctions.net/xenditSuccessCallback",
    "failure_redirect_url": "https://us-central1-appregator-f7d7a.cloudfunctions.net/xenditFailureCallback",
    "created": "2022-06-02T09:00:47.607Z",
    "updated": "2022-06-02T09:00:47.607Z",
    "currency": "IDR",
    "reminder_date": "2022-06-10T09:00:47.083Z",
    "customer": {
        "email": "ronald@importir.co"
    },
    "customer_notification_preference": {
        "invoice_created": [
            "email"
        ],
        "invoice_reminder": [
            "email"
        ],
        "invoice_expired": [
            "email"
        ],
        "invoice_paid": [
            "email"
        ]
    }
}
{
  "name": "qantor.co.id",
  "connection_name": "entrepreneurs.id",
  "invoice_id": "INV0063",
  "payment_method": "INVOICE_TRANSFER_VA",
  "amount": "4000000",
  "email": "ronald@importir.co",
  "success_redirect_url": "https://us-central1-appgregator.cloudfunctions.net/xendit/payment/callback/success",
  "failure_redirect_url": "https://us-central1-appgregator.cloudfunctions.net/xendit/payment/callback/failure"  
}

Last updated