From af297d9e44e3b703abb0d58e283be6ede5e2f540 Mon Sep 17 00:00:00 2001 From: andiniekaf22 <78575424+andiniekaf22@users.noreply.github.com> Date: Fri, 28 Jan 2022 17:08:45 +0700 Subject: [PATCH] Add API Send WhatsApp in Fund Acceptance section --- source/includes/_fund_acceptance.md | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/source/includes/_fund_acceptance.md b/source/includes/_fund_acceptance.md index 1ba5cd60..9aadfbb8 100644 --- a/source/includes/_fund_acceptance.md +++ b/source/includes/_fund_acceptance.md @@ -1430,6 +1430,46 @@ Reason | Message **Invalid API Key** | Invalid API Key **Restricted Access** | User does not have access to the payment link + +## API Send WhatsApp + +Use this API to send a payment link and/or invoice link through WhatsApp (using OY’s pre-defined template). + +### HTTPS Request + +**[Production]** POST https://partner.oyindonesia.com/api/whatsapp/send-link +**[Staging]** POST https://api-stg.oyindonesia.com/api/whatsapp/send-link + + +### Request Headers + +Parameters | Type | Description +---- | ---- | ---- +x-api-key | String | API Key used to connect to this particular endpoint +x-oy-username | String | Your OY! account username + +### Request Parameters + +Parameters | Type | Required | Description +---- | ---- | ------ | ------- +partner_tx_id| String(255) | TRUE| ID generated by Partner for a specific transaction +whatsapp_number | String(255) | TRUE| The WhatsApp number of your users. (format 628xxxxxxxxxx) + +### Response Parameters + +Parameters | Type | Description +---- | ---- | ---- +status | object| Status of response in Object {code: , message: }. +data |object| The API's response data in an Object, details are in the Response Data Parameters section + +### Response Data Parameters + +Parameters | Type | Description +---- | ---- | ---- +partner_tx_id| String(255)| ID generated by Partner for a specific transaction +whatsapp_number |String(255)| The WhatsApp number of your users. (format 628xxxxxxxxxx) +success_sent |Boolean| Filled with TRUE if a WA has successfully been sent to the WhatsApp number specified + ## Pop!: Seamless Payment Experience With Pop!, displaying our payment link page on your front-end web environment is now made easier than ever. Our payment link offers a seamless user experience in a way that can be catered to your UI needs.