Square
The Square connector lets you perform insert, delete, update, and read actions on the Square data.
Supported versions
This connector supports Square version 1.0.
Before you begin
Before using the Square connector, do the following tasks:
- In your Google Cloud project:
- Grant theroles/connectors.admin IAM role to the user configuring the connector.
- Grant the following IAM roles to the service account that you want to use for the connector:
roles/secretmanager.viewerroles/secretmanager.secretAccessor
A service account is a special type of Google account intended to represent a non-human user that needs to authenticate and be authorized to access data in Google APIs. If you don't have a service account, you must create a service account. For more information, seeCreating a service account.
- Enable the following services:
secretmanager.googleapis.com(Secret Manager API)connectors.googleapis.com(Connectors API)
To understand how to enable services, seeEnabling services.
If these services or permissions have not been enabled for your project previously, you are prompted to enable them when configuring the connector.
Configure the connector
A connection is specific to a data source. Itmeans that if you have many data sources, you must create a separate connectionfor each data source. To create a connection, do the following:
- In theCloud console, go to theIntegration Connectors > Connections page and then select or create a Google Cloud project.
- Click+ CREATE NEW to open theCreate Connection page.
- In theLocation section, choose the location for the connection.
- Region: Select a location from the drop-down list.
For the list of all the supported regions, seeLocations.
- ClickNEXT.
- Region: Select a location from the drop-down list.
- In theConnection Details section, complete the following:
- Connector: SelectSquare from the list of available connectors.
- Connector version: Select the connector version from the list of available versions.
- In theConnection Name field, enter a name for the connection instance.
Connection names must meet the following criteria:
- Connection names can use letters, numbers, or hyphens.
- Letters must be lowercase.
- Connection names must begin with a letter and end with a letter or number.
- Connection names cannot exceed 49 characters.
- Description: Enter a description for the connection instance.
- Optionally, enableCloud logging, and then select a log level. By default, the log level is set to
Error. - Service Account: Select a service account that has therequired roles.
- Schema: Specify the schema for the connection, such as v1 or v2.
- Use Sandbox: Specify whether to use the sandbox environment for the connection.
- Location Id: Specify the location ID for the connection.
- Optionally, configure theConnection node settings:
- Minimum number of nodes: Enter the minimum number of connection nodes.
- Maximum number of nodes: Enter the maximum number of connection nodes.
A node is a unit (or replica) of a connection that processes transactions. More nodes are required to process more transactions for a connection and conversely, fewer nodes are required to process fewer transactions. To understand how the nodes affect your connector pricing, see Pricing for connection nodes. If you don't enter any values, by default the minimum nodes are set to 2 (for better availability) and the maximum nodes are set to 50.
Note: You can customize the connection node values only if you are a Pay-as-you-go customer. - + ADD LABEL Click this to add a label to the connection in the form of a key/value pair.
- ClickNEXT.
- In theAuthentication section, enter the authentication details.
- Select anAuthentication type and enter the relevant details.
The following authentication types are supported by the Square connection:
- OAuth 2.0 - Authorization Code
- Personal Access Token
To understand how to configure these authentication types, seeConfigure authentication.
- ClickNEXT.
- Select anAuthentication type and enter the relevant details.
- Review: Review your connection and authentication details.
- ClickCreate.
Configure authentication
Enter the details based on the authentication you want to use.
- OAuth 2.0 - Authorization Code
- Client ID: Enter the client ID to use for the connection.
- Scopes: Enter a comma-separated list of desired scopes.
- Client Secret: Enter the client secret to use for the Square connection.
- Secret version: Select the secret version for the secret selected above.
- Authorization URL: Enter the authorization URL that was generated while creating the client.
- Enable Authentication Override: Specify whether to enable override authentication for the connection.
- Personal Access Token
- Personal Access Token: Enter the personal access token to use for the connection.
- Secret version: Select the secret version for the secret selected above.
- Enable Authentication Override: Specify whether to enable override authentication for the connection.
Connection configuration samples
This section lists the sample values for the various fields that you configure when creating the connection.
OAuth 2.0 - Authorization code connection type
| Fieldname | Details |
|---|---|
| Location | us-central1 |
| Connector | Square |
| Connector version | 1 |
| Connection Name | square-oauth-ai |
| Enable Cloud Logging | true |
| Service Account | my-service-account@my-project.iam.gserviceaccount.com |
| Schema | v2 |
| Minimum number of nodes | 2 |
| Maximum number of nodes | 50 |
| Authentication | OAuth 2.0 - Authorization Code |
| Client Id | CLIENT_ID |
| Scopes | BANK_ACCOUNTS_READ, CASH_DRAWER_READ, CUSTOMERS_READ, CUSTOMERS_WRITE, DEVICE_CREDENTIAL_MANAGEMENT, EMPLOYEES_READ, EMPLOYEES_WRITE, INVENTORY_READ, INVENTORY_WRITE, ITEMS_READ, ITEMS_WRITE, LOYALTY_READ, LOYALTY_WRITE, MERCHANT_PROFILE_READ, ORDERS_READ, ORDERS_WRITE, PAYMENTS_READ, PAYMENTS_WRITE, PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS, PAYMENTS_WRITE_IN_PERSON, SETTLEMENTS_READ, TIMECARDS_READ, TIMECARDS_WRITE, TIMECARDS_SETTINGS_READ, TIMECARDS_SETTINGS_WRITE, APPOINTMENTS_READ, APPOINTMENTS_WRITE, APPOINTMENTS_BUSINESS_SETTINGS_READ, INVOICES_READ, INVOICES_WRITE, SUBSCRIPTIONS_READ, SUBSCRIPTIONS_WRITE, DISPUTES_READ, DISPUTES_WRITE, GIFTCARDS_READ, GIFTCARDS_WRITE, ONLINE_STORE_SNIPPETS_WRITE, ONLINE_STORE_SNIPPETS_READ, ONLINE_STORE_SITE_READ, PAYMENTS_WRITE_SHARED_ONFILE, APPOINTMENTS_ALL_READ, APPOINTMENTS_ALL_WRITE, MERCHANT_PROFILE_WRITE, VENDOR_READ, VENDOR_WRITE, PAYOUTS_READ, DEVICES_READ |
| Client Secret | CLIENT_SECRET |
| Secret version | 1 |
| Authorization URL | https://connect.squareup.com/oauth2/authorize |
Personal access token connection type
| Fieldname | Details |
|---|---|
| Location | asia-east1 |
| Connector | Square |
| Connector version | 1 |
| Connection Name | square-pat-prod-conn |
| Enable Cloud Logging | true |
| Service Account | my-service-account@my-project.iam.gserviceaccount.com |
| Schema | v2 |
| Use Sandbox | true |
| Minimum number of nodes | 2 |
| Maximum number of nodes | 50 |
| Authentication | Personal Access Token |
| Personal Access Token | PERSONAL_ACCESS_TOKEN |
| Secret version | 1 |
System limitations
The Square connector can process a maximum of 16 transactions per second, pernode, andthrottles any transactions beyond this limit. By default, Integration Connectors allocates 2 nodes (for better availability) for a connection.
For information on the limits applicable to Integration Connectors, seeLimits.
Note: The number ofIntegration Connectors nodes will autoscale dynamically based on your usage. However, if you want to reserve capacity for large volumes without waiting for autoscaling, you can adjust the minimum node value for a connection. More nodes are required to process more transactions for a connection. Conversely, fewer nodes are required if a connection processes fewer transactions. To configure the node values, do the following:- If you are a pay-as-you-go customer, configure the minimum and maximum node value in the edit connection page.
- If you are a subscription based customer,contact support.
The maximum transactions that a node can handle depends on various factors. So, before adjusting the minimum nodes for better throughput, it is recommended you check if your backend systems are set up optimally to handle the required traffic.
Use the Square connection in an integration
After you create the connection, it becomes available in bothApigee Integration and Application Integration. You can use the connectionin an integration through the Connectors task.
- To understand how to create and use the Connectors task in Apigee Integration, seeConnectors task.
- To understand how to create and use the Connectors task in Application Integration, seeConnectors task.
Actions
This section shows how to perform some of theactions in this connector.
CancelPayment action
This action cancels a payment.
Input parameters of the CancelPayment action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| PaymentId | String | True | The ID of the payment to cancel. |
For an example about how to configure theCancelPayment action,seeExamples.
CompletePayment action
This action completes a payment.
Input parameters of the CompletePayment action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| PaymentId | String | True | The ID of the payment to complete. |
For an example about how to configure theCompletePayment action,seeExamples.
CancelPaymentByIdempotencyKey action
This action cancels a payment using its idempotency key.
Input parameters of the CancelPaymentByIdempotencyKey action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| IdempotencyKey | String | True | The idempotency key used to identify the payment to cancel. |
For an example about how to configure theCancelPaymentByIdempotencyKey action,seeExamples.
CancelInvoice action
This action cancels an invoice.
Input parameters of the CancelInvoice action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| InvoiceId | String | True | The ID of the invoice to cancel. |
| InvoiceVersion | String | True | The version of the invoice to cancel. |
For an example about how to configure theCancelInvoice action,seeExamples.
PublishInvoice action
This action publishes an invoice.
Input parameters of the PublishInvoice action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| InvoiceId | String | True | The ID of the invoice to publish. |
| InvoiceVersion | Int32 | True | The version of the invoice to publish. This must match the current version of the invoice; otherwise, the request is rejected. |
For an example about how to configure thePublishInvoice action,seeExamples.
DeleteInvoiceAttachment action
This action deletes an invoice attachment.
Input parameters of the DeleteInvoiceAttachment action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| InvoiceId | String | True | The ID of the invoice that contains the attachment to delete. |
| AttachmentId | String | True | The ID of the attachment to delete. |
For an example about how to configure theDeleteInvoiceAttachment action,seeExamples.
CancelSubscriptions action
This action cancels a subscription.
Input parameters of the CancelSubscriptions action
| Parameter name | Data type | Required | Description |
|---|---|---|---|
| Id | String | True | The ID of the subscription to cancel. |
For an example about how to configure theCancelSubscriptions action,seeExamples.
Action examples
This section shows how to perform some of the action examples in this connector.
Example - Cancel a payment
- In the
Configure connector taskdialog, clickActions. - Select the
CancelPaymentaction, and then clickDone. - In theTask Input section of theConnectors task, click
connectorInputPayloadand then enter a value similar to the following in theDefault Valuefield:{ "PaymentId": "P7eOGiuAYV8CfcLxSXHuUsedBRMZY"}
If the action is successful, theconnector task'sconnectorOutputPayload responseparameter will have a value similar to the following:
[ { "Success": true }]Example - Complete a payment
- In the
Configure connector taskdialog, clickActions. - Select the
CompletePaymentaction, and then clickDone. - In theTask Input section of theConnectors task, click
connectorInputPayloadand then enter a value similar to the following in theDefault Valuefield:{ "PaymentId": "JiZRuypGuu4B7OOoPhL3kYg9YZaZY"}
If the action is successful, theconnector task'sconnectorOutputPayload responseparameter will have a value similar to the following:
[{"Success": true}]Example - Cancel a payment using an idempotency key
- In the
Configure connector taskdialog, clickActions. - Select the
CancelPaymentByIdempotencyKeyaction, and then clickDone. - In theTask Input section of theConnectors task, click
connectorInputPayloadand then enter a value similar to the following in theDefault Valuefield:{ "IdempotencyKey": "8b3e387b-a4d8-480c-a871-1c5fdcfd82cd"}
If the action is successful, the connector task'sconnectorOutputPayload responseparameter will have a value similar to the following:
[{"Success": true}]Example - Cancel an invoice
- In the
Configure connector taskdialog, clickActions. - Select the
CancelInvoiceaction, and then clickDone. - In theTask Input section of theConnectors task, click
connectorInputPayloadand then enter a value similar to the following in theDefault Valuefield:{"InvoiceId": "inv:0-ChCdONOpvkOxnZ64VuiDwLQ4EPgO","InvoiceVersion": "2"}
If the action is successful, theconnector task'sconnectorOutputPayload responseparameter will have a value similar to the following:
[ { "invoice_id": "inv:0-ChCdONOpvkOxnZ64VuiDwLQ4EPgO", "invoice_version": "3", "invoice_location_id": "LSHW80WV4KB06", "invoice_order_id": "dfChzstnmPfPGdEIFQ6ulRFdOf4F", "invoice_payment_requests_uid": "28ff79b1-16de-4c82-bb88-3f4e02be68c5", "invoice_payment_requests_request_type": "BALANCE", "invoice_payment_requests_due_date": "2025-11-26", "invoice_payment_requests_tipping_enabled": "true", "invoice_payment_requests_computed_amount_money_amount": "60", "invoice_payment_requests_computed_amount_money_currency": "USD", "invoice_payment_requests_total_completed_amount_money_amount": "0", "invoice_payment_requests_total_completed_amount_money_currency": "USD", "invoice_payment_requests_reminders_uid": "ae64a254-d516-4014-aea2-5fee42ec7457", "invoice_payment_requests_reminders_relative_scheduled_days": "1", "invoice_payment_requests_reminders_message": "Your invoice is almost due", "invoice_payment_requests_reminders_status": "NOT_APPLICABLE", "invoice_payment_requests_automatic_payment_source": "NONE", "invoice_primary_recipient_customer_id": "5BH2SYXX0G87A7NBYZKKJJTDVG", "invoice_primary_recipient_given_name": "Postman", "invoice_primary_recipient_family_name": "Test", "invoice_primary_recipient_email_address": "Charlie.Cruz@altostrat.com", "invoice_primary_recipient_phone_number": "1-212-555-4240", "invoice_primary_recipient_company_name": "Square", "invoice_primary_recipient_address_address_line_1": "500 Electric Ave", "invoice_primary_recipient_address_address_line_2": "Suite 600", "invoice_primary_recipient_address_locality": "New York", "invoice_primary_recipient_address_administrative_district_level_1": "NY", "invoice_primary_recipient_address_postal_code": "10003", "invoice_primary_recipient_address_country": "US", "invoice_invoice_number": "00000001", "invoice_title": "Invoice Update", "invoice_description": "Updating invoice", "invoice_public_url": "https://app.squareupsandbox.com/pay-invoice/invtmp:8779596a-2c13-4cf0-ab21-05eb6a1d03ef", "invoice_status": "CANCELED", "invoice_timezone": "UTC", "invoice_created_at": "2025-06-11T09:19:10Z", "invoice_updated_at": "2025-06-11T09:57:24Z", "invoice_accepted_payment_methods_card": "true", "invoice_accepted_payment_methods_square_gift_card": "true", "invoice_accepted_payment_methods_bank_account": "true", "invoice_accepted_payment_methods_buy_now_pay_later": "true", "invoice_accepted_payment_methods_cash_app_pay": "true", "invoice_delivery_method": "EMAIL", "invoice_store_payment_method_enabled": "true", "success": true }]Example - Publish an invoice
- In the
Configure connector taskdialog, clickActions. - Select the
PublishInvoiceaction, and then clickDone. - In theTask Input section of theConnectors task, click
connectorInputPayloadand then enter a value similar to the following in theDefault Valuefield:{ "InvoiceId": "inv:0-ChCdONOpvkOxnZ64VuiDwLQ4EPgO", "InvoiceVersion": 1}
If the action is successful, theconnector task'sconnectorOutputPayload responseparameter will have a value similar to the following:
[ { "invoice_id": "inv:0-ChCdONOpvkOxnZ64VuiDwLQ4EPgO", "invoice_version": "2", "invoice_location_id": "LSHW80WV4KB06", "invoice_order_id": "dfChzstnmPfPGdEIFQ6ulRFdOf4F", "invoice_payment_requests_uid": "28ff79b1-16de-4c82-bb88-3f4e02be68c5", "invoice_payment_requests_request_type": "BALANCE", "invoice_payment_requests_due_date": "2025-11-26", "invoice_payment_requests_tipping_enabled": "true", "invoice_payment_requests_computed_amount_money_amount": "60", "invoice_payment_requests_computed_amount_money_currency": "USD", "invoice_payment_requests_total_completed_amount_money_amount": "0", "invoice_payment_requests_total_completed_amount_money_currency": "USD", "invoice_payment_requests_reminders_uid": "ae64a254-d516-4014-aea2-5fee42ec7457", "invoice_payment_requests_reminders_relative_scheduled_days": "1", "invoice_payment_requests_reminders_message": "Your invoice is almost due", "invoice_payment_requests_reminders_status": "PENDING", "invoice_payment_requests_automatic_payment_source": "NONE", "invoice_primary_recipient_customer_id": "5BH2SYXX0G87A7NBYZKKJJTDVG", "invoice_primary_recipient_given_name": "Postman", "invoice_primary_recipient_family_name": "Test", "invoice_primary_recipient_email_address": "Charlie.Cruz@altostrat.com", "invoice_primary_recipient_phone_number": "1-212-555-4240", "invoice_primary_recipient_company_name": "Square", "invoice_primary_recipient_address_address_line_1": "500 Electric Ave", "invoice_primary_recipient_address_address_line_2": "Suite 600", "invoice_primary_recipient_address_locality": "New York", "invoice_primary_recipient_address_administrative_district_level_1": "NY", "invoice_primary_recipient_address_postal_code": "10003", "invoice_primary_recipient_address_country": "US", "invoice_invoice_number": "00000001", "invoice_title": "Invoice Update", "invoice_description": "Updating invoice", "invoice_public_url": "https://app.squareupsandbox.com/pay-invoice/invtmp:8779596a-2c13-4cf0-ab21-05eb6a1d03ef", "invoice_next_payment_amount_money_amount": "60", "invoice_next_payment_amount_money_currency": "USD", "invoice_status": "UNPAID", "invoice_timezone": "UTC", "invoice_created_at": "2025-06-11T09:19:10Z", "invoice_updated_at": "2025-06-11T09:52:13Z", "invoice_accepted_payment_methods_card": "true", "invoice_accepted_payment_methods_square_gift_card": "true", "invoice_accepted_payment_methods_bank_account": "true", "invoice_accepted_payment_methods_buy_now_pay_later": "true", "invoice_accepted_payment_methods_cash_app_pay": "true", "invoice_delivery_method": "EMAIL", "invoice_store_payment_method_enabled": "true", "success": true }]Example - Delete an invoice attachment
- In the
Configure connector taskdialog, clickActions. - Select the
DeleteInvoiceAttachmentaction, and then clickDone. - In theTask Input section of theConnectors task, click
connectorInputPayloadand then enter a value similar to the following in theDefault Valuefield:{ "InvoiceId": "inv:0-ChBGMewfnhndQBmYdpW0sp3uEPgO", "AttachmentId": "inva:0-ChBsWWogZxWt0bRCqCdHkJJO"}
If the action is successful, the connector task'sconnectorOutputPayload responseparameter will have a value similar to the following:
[{"Success": true}]Example - Cancel a subscription
- In the
Configure connector taskdialog, clickActions. - Select the
CancelSubscriptionsaction, and then clickDone. - In theTask Input section of theConnectors task, click
connectorInputPayloadand then enter a value similar to the following in theDefault Valuefield:{ "Id": "40da986b-08e4-45bf-9ba2-d11cf9f589fb"}
If the action is successful, the connector task'sconnectorOutputPayload responseparameter will have a value similar to the following:
[{"Success": true,"Status": "CANCELED"}]Entity operation examples
This section shows how to perform some of the entity operations in this connector.
Example - List all the payments
- In the
Configure connector taskdialog, clickEntities. - Select
Paymentsfrom theEntitylist. - Select the
Listoperation, and then clickDone. - In theTask Input section of theConnectors task, you can set thefilterClause based on your filtering requirements.
You must use single quotes (') to enclose the value for afilterClause. You can use thefilterClause to filter records based on the columns.
Example - Get payment details
- In the
Configure connector taskdialog, clickEntities. - Select
Paymentsfrom theEntitylist. - Select the
Getoperation, and then clickDone. - Set theentityId to
"bb4756c7-38c0-426b-97aa-03b6443e7f16"which is the key to be passed. - To set theentityId, in theData Mapper section of theData Mapping, clickOpen Data Mapping Editor and then enter
"bb4756c7-38c0-426b-97aa-03b6443e7f16"in theInput Value field and choose theentityId as local variable.
The value forentityId must be passed directly, such as"bb4756c7-38c0-426b-97aa-03b6443e7f16". Here,"bb4756c7-38c0-426b-97aa-03b6443e7f16" is the unique primary key value.
If passing a singleentityId throws an error due to the presence of two composite keys, you can use thefilterClause to pass the value.
Example - Delete a payment
- In the
Configure connector taskdialog, clickEntities. - Select
Paymentsfrom theEntitylist. - Select the
Deleteoperation, and then clickDone. - Set theentityId to
"62008bbe-effa-4341-9d29-eac7f67b84fe"which is the key to be passed. - To set theentityId, in theData Mapper section of theData Mapping, clickOpen Data Mapping Editor and then enter
"62008bbe-effa-4341-9d29-eac7f67b84fe"in theInput Value field and choose theentityId as local variable.
If the entity has two composite business or primary keys, instead of specifying theentityId, you can also set thefilterClause toid='62008bbe-effa-4341-9d29-eac7f67b84fe'.
Example - Create a payment
- In the
Configure connector taskdialog, clickEntities. - Select
Paymentsfrom theEntitylist. - Select the
Createoperation, and then clickDone. - In theData Mapper section of theData Mapping task, click
Open Data Mapping Editorand then enter a value similar to the following in theInput Valuefield and choose theentityId orconnectorInputPayload as local variable.{ "ShippingAddressLine1": "Paris", "BillingAddressFirstName": "Charlie", "SourceId": "cnon:card-nonce-ok", "BankName": "Altostrat bank", "MoneyAmount": 7, "MoneyCurrency": "USD", "IdempotencyKey": "ab5c8c43-eaba-474e-935c-268ea3ae453a"}If the integration is successful, the connector task's
connectorOutputPayloadresponseparameter will have a value similar to the following:{ "Id": "BY8GnuLixAdrbr93m8nYHDgONxZZY"}
Example - Create a refund
- In the
Configure connector taskdialog, clickEntities. - Select
Refundsfrom theEntitylist. - Select the
Createoperation, and then clickDone. - In theData Mapper section of theData Mapping task, click
Open Data Mapping Editorand then enter a value similar to the following in theInput Valuefield and choose theentityId orconnectorInputPayload as local variable.{ "PaymentId": "50yXsd0oousMgYUv0372RkIdJnRZY", "RefundedMoneyAmount": 72, "RefundedMoneyCurrency": "USD"}If the integration is successful, theconnector task's
connectorOutputPayloadresponseparameter will have a value similar to the following:{ "Success": true}
Example - Create a subscription
- In the
Configure connector taskdialog, clickEntities. - Select
Subscriptionsfrom theEntitylist. - Select the
Createoperation, and then clickDone. - In theData Mapper section of theData Mapping task, click
Open Data Mapping Editorand then enter a value similar to the following in theInput Valuefield and choose theentityId orconnectorInputPayload as local variable.{ "LocationId": "LSHW80WV4KB06", "CustomerId": "TE9VCZMC369HVA2RVBCEKTDQ6G", "PlanId": "OEVRZUHD5C42W7VQUT22WURN", "Ordinal": 0, "OrderTemplateId": "d9ZVzcjiHVc2Ugd0bzlE7yZT9g4F"}If the integration is successful, theconnector task's
connectorOutputPayloadresponseparameter will have a value similar to the following:{ "Id": "40da986b-08e4-45bf-9ba2-d11cf9f589fb"}
Example - Create a customer
- In the
Configure connector taskdialog, clickEntities. - Select
Customersfrom theEntitylist. - Select the
Createoperation, and then clickDone. - In theData Mapper section of theData Mapping task, click
Open Data Mapping Editorand then enter a value similar to the following in theInput Valuefield and choose theentityId orconnectorInputPayload as local variable.{ "FamilyName": "LastName", "GivenName": "FirstName"}If the integration is successful, the connector task's
connectorOutputPayloadresponseparameter will have a value similar to the following:{ "Id": "X8883DFR5M4AXGEKRSCFE3F2M9"}
Example - Create a gift card
- In the
Configure connector taskdialog, clickEntities. - Select
GiftCardsfrom theEntitylist. - Select the
Createoperation, and then clickDone. - In theData Mapper section of theData Mapping task, click
Open Data Mapping Editorand then enter a value similar to the following in theInput Valuefield and choose theentityId orconnectorInputPayload as local variable.{ "Type": "DIGITAL", "LocationId": "LSHW80WV4KB06"}If the integration is successful, the connector task's
connectorOutputPayloadresponseparameter will have a value similar to the following:{ "Id": "X8883DFR5M4AXGEKRSCFE3F2M0"}
Example - Update an invoice
- In the
Configure connector taskdialog, clickEntities. - Select
Invoicesfrom theEntitylist. - Select the
Updateoperation, and then clickDone. - In theData Mapper section of theData Mapping task, click
Open Data Mapping Editorand then enter a value similar to the following in theInput Valuefield and choose theentityId,connectorInputPayload, orfilterClause as local variable.{ "Title": "Invoice Update", "Description": "Update Invoice", "Version": 0} - Set theentityId in Data Mapper to the entity of the Invoices.
- To set theentityId, click
Open Data Mapping Editorand then enter a value similar to the following in theInput Valuefield and choose theentityId,connectorInputPayload, orfilterClause as local variable.Instead of specifying theentityId, you can also set thefilterClause to
'inv:0-ChCdONOpvkOxnZ64VuiDwLQ4EPgO'.Running this example, returns a response similar to the following in the connectortask's
connectorOutputPayloadoutput variable:{ }
Example - Update a subscription
- In the
Configure connector taskdialog, clickEntities. - Select
Subscriptionsfrom theEntitylist. - Select the
Updateoperation, and then clickDone. - In theData Mapper section of theData Mapping task, click
Open Data Mapping Editorand then enter a value similar to the following in theInput Valuefield and choose theentityId,connectorInputPayload, orfilterClause as local variable.{ "Note": "Update Subscription"} - Set theentityId in Data Mapper to the entity of the Subscriptions.
- To set theentityId, click
Open Data Mapping Editorand then enter a value similar to the following in theInput Valuefield and choose theentityId,connectorInputPayload, orfilterClause as local variable.Instead of specifying theentityId, you can also set thefilterClause to
'40da986b-08e4-45bf-9ba2-d11cf9f589fb'.Running this example, returns a response similar to the following in the connectortask's
connectorOutputPayloadoutput variable:{ }
Example - Update payout details
- In the
Configure connector taskdialog, clickEntities. - Select
PayOutsfrom theEntitylist. - Select the
Updateoperation, and then clickDone. - In theData Mapper section of theData Mapping task, click
Open Data Mapping Editorand then enter a value similar to the following in theInput Valuefield and choose theentityId,connectorInputPayload, orfilterClause as local variable.{ "Version": 1, "Description": "Update Payout"} - Set theentityId in Data Mapper to the entity of the PayOuts.
- To set theentityId, click
Open Data Mapping Editorand then enter a value similar to the following in theInput Valuefield and choose theentityId,connectorInputPayload, orfilterClause as local variable.Instead of specifying theentityId, you can also set thefilterClause to
'181352d9-94ef-4e86-8bb9-e3759472325f'.Running this example, returns a response similar to the following in the connectortask's
connectorOutputPayloadoutput variable:{ }
Get help from the Google Cloud community
You can post your questions and discuss this connector in the Google Cloudcommunity atCloud Forums.What's next
- Understand how tosuspend and resume a connection.
- Understand how tomonitor connector usage.
- Understand how toview connector logs.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-19 UTC.