Managing credit lines | Developer Documentation
Managing credit lines
Updated: Dec 12, 2025
This document describes how Solution Partners can share and revoke lines of credit with onboarded business customers.
Billing Liability Disclosure
Business customers that you onboard through Embedded Signup must be granted access to your line of credit with Meta to pay for WhatsApp Business Platform access. This means that businesses pay you, and you receive an aggregated invoice to pay Meta.
You are the “Bill To Party” for all businesses sharing your credit line. You are liable for and will pay Meta for all WhatsApp Business Platform spend made by these businesses.
You can grant access to your line of credit using the APIs described in this document. You can revoke access to your line of credit for individual businesses within the Meta Business Suite or with a series of API calls.
Authentication and authorization
Nearly all credit line related endpoints require your system user access token. In addition, the system user who the token represents must have granted your app the business_management permission, and must have been granted an Admin or Financial Editor role on your business portfolio.
Get
your credit line ID
Request syntax
curl 'https://graph.facebook.com/<API_VERSION>/<BUSINESS_ID>/extendedcredits' \ -H 'Authorization: Bearer <ACCESS_TOKEN>'
Request example
curl 'https://graph.facebook.com/v24.0/102289599326934/extendedcredits' \ -H 'Authorization: Bearer EAAJi...'
Response
{ "data": [ { "id": "1972385232742146" } ] }
Sharing your credit line
We are currently testing new steps for sharing your credit line with onboarded business customers. These steps will eventually replace this step, so if you wish to implement these steps now, refer to the Alternate method for sharing your credit line below.
Use the POST /<EXTENDED_CREDIT_LINE_ID>/whatsapp_credit_sharing_and_attach endpoint to share your credit line with an onboarded business customer.
Request
syntax
curl -X POST 'https://graph.facebook.com/<API_VERSION>/<EXTENDED_CREDIT_LINE_ID>/whatsapp_credit_sharing_and_attach?waba_currency=<CUSTOMER_BUSINESS_CURRENCY>&waba_id=<CUSTOMER_WABA_ID>' \ -H 'Authorization: Bearer <SYSTEM_TOKEN>'
Request parameters
<CUSTOMER_BUSINESS_CURRENCY>Required.
The business’s currency, as a three-letter currency code. Support values are:
AUDEURGBPIDRINRUSD
This currency is used for invoicing and corresponds to pricing rates.
USD<CUSTOMER_WABA_ID>Required.
The customer’s WABA ID.
102290129340398<EXTENDED_CREDIT_LINE_ID>Required.
Your extended credit line ID.
1972385232742146<SYSTEM_TOKEN>Required.
Your system token.
EAAAN6tcBzAUBOZC82CW7iR2LiaZBwUHS4Y7FDtQxRUPy1PHZClDGZBZCgWdrTisgMjpFKiZAi1FBBQNO2IqZBAzdZAA16lmUs0XgRcCf6z1LLxQCgLXDEpg80d41UZBt1FKJZCqJFcTYXJvSMeHLvOdZwFyZBrV9ZPHZASSqxDZBUZASyFdzjiy2A1sippEsF4DVV5W2IlkOSr2LrMLuYoNMYBy8xQczzOKDOMccqHEZDResponse
Upon success:
{
Response parameters
<ALLOCATION_CONFIGURATION_ID>The extended credit line’s allocation configuration ID.
Save this ID if you want to verify that your credit line has been shared with the customer.
58501441721238<CUSTOMER_WABA_ID>The customer’s WABA ID.
102290129340398Alternate
method for sharing your credit line
Step 1: Get your customer’s business portfolio ID
owner_business_infoRequest syntax
curl --get 'https://graph.facebook.com/v21.0/<WABA_ID>?fields=owner_business_info' \ -H 'Authorization: Bearer <BUSINESS_TOKEN>'
Request parameters
| | |
| |
Response syntax
{ "owner_business_info": { "name": "<BUSINESS_PORTFOLIO_NAME>", "id": "<BUSINESS_PORTFOLIO_ID>" }, "id": "<WABA_ID>" }
Response parameters
| | |
| | |
| |
Request syntax
curl -X POST 'https://graph.facebook.com/<API_VERSION>/<EXTENDED_CREDIT_LINE_ID>/whatsapp_credit_sharing?receiving_business_id=<BUSINESS_PORTFOLIO_ID>' \ -H 'Authorization: Bearer <SYSTEM_TOKEN>'
Request parameters
| | |
| | |
| |
Response example
"success": true, "allocation_config_id": "58501441721238" }
Response parameters
| |
Step 3: Attach your credit line to the customer’s WABA
Request syntax
curl -X POST 'https://graph.facebook.com/v21.0/<EXTENDED_CREDIT_LINE_ID>/whatsapp_credit_attach?waba_currency=<WABA_CURRENCY>&waba_id=<WABA_ID>' \ -H 'Authorization: Bearer <BUSINESS_TOKEN>'
Request parameters
| | |
| | |
| | |
| |
Response syntax
{ "success": true, "waba_id": "<WABA_ID>", "allocation_config_id": "<ALLOCATION_CONFIG_ID>" }
Response parameters
| | |
| |
Step 1: Get credit line’s receiving credential
receiving_credentialRequest syntax
curl 'https://graph.facebook.com/<API_VERSION>/<EXTENDED_CREDIT_ALLOCATION_ID>?fields=receiving_credential' \ -H 'Authorization: Bearer <SYSTEM_TOKEN>'
Response syntax
{ "receiving_credential": { "id": "<RECEIVING_CREDENTIAL_ID>" }, "id": "<ALLOCATION_CONFIGURATION_ID>" }
Step 2: Get WABA’s primary funding ID
Request syntax
curl 'https://graph.facebook.com/v21.0/<CUSTOMER_WABA_ID>/?fields=primary_funding_id' \ -H 'Authorization: Bearer <CUSTOMER_BUSINESS_TOKEN>'
Response syntax
{ "primary_funding_id": "<PRIMARY_FUNDING_ID>", "id": "<CUSTOMER_WABA_ID>" }
Step 3: Compare IDs
Step 1: Get your credit line ID
Example request
curl -i -X GET "https://graph.facebook.com/v25.0/105954558954427/
extendedcredits?fields=id,legal_entity_name&
access_token=EAAFl..."
Example response
{ "data": [ { "id": "1972385232742146", //Credit line ID "legal_entity_name": "Your Legal Entity", } ] }
Step 2: Get the customer’s business portfolio ID
curl -i -X GET "https://graph.facebook.com/v25.0/
<WHATSAPP_BUSINESS_ACCOUNT_ID>?fields=owner_business_info&
access_token=<ACCESS_TOKEN>"
{ "owner_business_info": { "name": "Client Business Name", "id": "1972385232742147" }, }
Step 3: Get the customer’s credit sharing record
curl -i -X GET "https://graph.facebook.com/<API_VERSION>/<EXTENDED_CREDIT_ID>/ owning_credit_allocation_configs? receiving_business_id=<CLIENT_BUSINESS_ID>& fields=id,receiving_business& access_token=<SYSTEM_USER_ACCESS_TOKEN>"
{ "id": "1972385232742140", // Allocation config (i.e., credit sharing) id "receiving_business": { "name": "Client Business Name" "id": "1972385232742147" }, }
Step 4: Revoke credit sharing
curl -i -X DELETE "https://graph.facebook.com/v25.0/
{allocation-config-id}?
access_token={system-user-access-token}"
{ "success": true, }
Step 5: Verify credit sharing was revoked (Optional)
curl -i -X GET "https://graph.facebook.com/v25.0/
{allocation-config-id}?fields=receiving_business,request_status&
access_token={system-user-access-token}"
{ "receiving_business": { "name": "Customer Business Name" "id": "1972385232742147" }, "request_status": "DELETED" }
Troubleshooting
If a business customer unshares their WABA with you, or removes you as a partner from their WhatsApp Business Account, you will not be able to get their business portfolio ID via API.
Instead, you can get their portfolio ID from the email notification that was sent to admins of the business portfolio, when the business customer removed you as a partner, or unshared their WABA.
When WABA is unshared with you, all messaging for that WABA is blocked to protect your credit line. For complete security, we recommend that you revoke your credit line from the business customer’s WABA as soon as it has been unshared with you.