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.viewer
      • roles/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:

  1. In theCloud console, go to theIntegration Connectors > Connections page and then select or create a Google Cloud project.

    Go to the Connections page

  2. Click+ CREATE NEW to open theCreate Connection page.
  3. In theLocation section, choose the location for the connection.
    1. Region: Select a location from the drop-down list.

      For the list of all the supported regions, seeLocations.

    2. ClickNEXT.
  4. In theConnection Details section, complete the following:
    1. Connector: SelectSquare from the list of available connectors.
    2. Connector version: Select the connector version from the list of available versions.
    3. 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.
    4. Description: Enter a description for the connection instance.
    5. Optionally, enableCloud logging, and then select a log level. By default, the log level is set toError.
    6. Service Account: Select a service account that has therequired roles.
    7. Schema: Specify the schema for the connection, such as v1 or v2.
    8. Use Sandbox: Specify whether to use the sandbox environment for the connection.
    9. Location Id: Specify the location ID for the connection.
    10. 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.

    11. Note: You can customize the connection node values only if you are a Pay-as-you-go customer.
    12. + ADD LABEL Click this to add a label to the connection in the form of a key/value pair.
    13. ClickNEXT.
  5. In theAuthentication section, enter the authentication details.
    1. 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.

    2. ClickNEXT.
  6. Review: Review your connection and authentication details.
  7. 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

FieldnameDetails
Locationus-central1
ConnectorSquare
Connector version1
Connection Namesquare-oauth-ai
Enable Cloud Loggingtrue
Service Accountmy-service-account@my-project.iam.gserviceaccount.com
Schemav2
Minimum number of nodes2
Maximum number of nodes50
AuthenticationOAuth 2.0 - Authorization Code
Client IdCLIENT_ID
ScopesBANK_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 SecretCLIENT_SECRET
Secret version1
Authorization URLhttps://connect.squareup.com/oauth2/authorize

Personal access token connection type

FieldnameDetails
Locationasia-east1
ConnectorSquare
Connector version1
Connection Namesquare-pat-prod-conn
Enable Cloud Loggingtrue
Service Accountmy-service-account@my-project.iam.gserviceaccount.com
Schemav2
Use Sandboxtrue
Minimum number of nodes2
Maximum number of nodes50
AuthenticationPersonal Access Token
Personal Access TokenPERSONAL_ACCESS_TOKEN
Secret version1

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 nameData typeRequiredDescription
PaymentIdStringTrueThe 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 nameData typeRequiredDescription
PaymentIdStringTrueThe 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 nameData typeRequiredDescription
IdempotencyKeyStringTrueThe 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 nameData typeRequiredDescription
InvoiceIdStringTrueThe ID of the invoice to cancel.
InvoiceVersionStringTrueThe 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 nameData typeRequiredDescription
InvoiceIdStringTrueThe ID of the invoice to publish.
InvoiceVersionInt32TrueThe 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 nameData typeRequiredDescription
InvoiceIdStringTrueThe ID of the invoice that contains the attachment to delete.
AttachmentIdStringTrueThe 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 nameData typeRequiredDescription
IdStringTrueThe 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

  1. In theConfigure connector task dialog, clickActions.
  2. Select theCancelPayment action, and then clickDone.
  3. In theTask Input section of theConnectors task, clickconnectorInputPayload and then enter a value similar to the following in theDefault Value field:
    {  "PaymentId": "P7eOGiuAYV8CfcLxSXHuUsedBRMZY"}
  4. If the action is successful, theconnector task'sconnectorOutputPayload responseparameter will have a value similar to the following:

    [  {    "Success": true  }]

Example - Complete a payment

  1. In theConfigure connector task dialog, clickActions.
  2. Select theCompletePayment action, and then clickDone.
  3. In theTask Input section of theConnectors task, clickconnectorInputPayload and then enter a value similar to the following in theDefault Value field:
    {  "PaymentId": "JiZRuypGuu4B7OOoPhL3kYg9YZaZY"}
  4. 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

  1. In theConfigure connector task dialog, clickActions.
  2. Select theCancelPaymentByIdempotencyKey action, and then clickDone.
  3. In theTask Input section of theConnectors task, clickconnectorInputPayload and then enter a value similar to the following in theDefault Value field:
    {  "IdempotencyKey": "8b3e387b-a4d8-480c-a871-1c5fdcfd82cd"}
  4. If the action is successful, the connector task'sconnectorOutputPayload responseparameter will have a value similar to the following:

    [{"Success": true}]

Example - Cancel an invoice

  1. In theConfigure connector task dialog, clickActions.
  2. Select theCancelInvoice action, and then clickDone.
  3. In theTask Input section of theConnectors task, clickconnectorInputPayload and then enter a value similar to the following in theDefault Value field:
    {"InvoiceId": "inv:0-ChCdONOpvkOxnZ64VuiDwLQ4EPgO","InvoiceVersion": "2"}
  4. 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

  1. In theConfigure connector task dialog, clickActions.
  2. Select thePublishInvoice action, and then clickDone.
  3. In theTask Input section of theConnectors task, clickconnectorInputPayload and then enter a value similar to the following in theDefault Value field:
    {  "InvoiceId": "inv:0-ChCdONOpvkOxnZ64VuiDwLQ4EPgO",  "InvoiceVersion": 1}
  4. 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

  1. In theConfigure connector task dialog, clickActions.
  2. Select theDeleteInvoiceAttachment action, and then clickDone.
  3. In theTask Input section of theConnectors task, clickconnectorInputPayload and then enter a value similar to the following in theDefault Value field:
    {  "InvoiceId": "inv:0-ChBGMewfnhndQBmYdpW0sp3uEPgO",  "AttachmentId": "inva:0-ChBsWWogZxWt0bRCqCdHkJJO"}
  4. If the action is successful, the connector task'sconnectorOutputPayload responseparameter will have a value similar to the following:

    [{"Success": true}]

Example - Cancel a subscription

  1. In theConfigure connector task dialog, clickActions.
  2. Select theCancelSubscriptions action, and then clickDone.
  3. In theTask Input section of theConnectors task, clickconnectorInputPayload and then enter a value similar to the following in theDefault Value field:
    {  "Id": "40da986b-08e4-45bf-9ba2-d11cf9f589fb"}
  4. 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

  1. In theConfigure connector task dialog, clickEntities.
  2. SelectPayments from theEntity list.
  3. Select theList operation, and then clickDone.
  4. In theTask Input section of theConnectors task, you can set thefilterClause based on your filtering requirements.
  5. 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

  1. In theConfigure connector task dialog, clickEntities.
  2. SelectPayments from theEntity list.
  3. Select theGet operation, and then clickDone.
  4. Set theentityId to"bb4756c7-38c0-426b-97aa-03b6443e7f16" which is the key to be passed.
  5. 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.
  6. 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

  1. In theConfigure connector task dialog, clickEntities.
  2. SelectPayments from theEntity list.
  3. Select theDelete operation, and then clickDone.
  4. Set theentityId to"62008bbe-effa-4341-9d29-eac7f67b84fe" which is the key to be passed.
  5. 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.
  6. 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

  1. In theConfigure connector task dialog, clickEntities.
  2. SelectPayments from theEntity list.
  3. Select theCreate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field 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'sconnectorOutputPayload responseparameter will have a value similar to the following:

    {  "Id": "BY8GnuLixAdrbr93m8nYHDgONxZZY"}

Example - Create a refund

  1. In theConfigure connector task dialog, clickEntities.
  2. SelectRefunds from theEntity list.
  3. Select theCreate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose theentityId orconnectorInputPayload as local variable.
    {  "PaymentId": "50yXsd0oousMgYUv0372RkIdJnRZY",  "RefundedMoneyAmount": 72,  "RefundedMoneyCurrency": "USD"}

    If the integration is successful, theconnector task'sconnectorOutputPayload responseparameter will have a value similar to the following:

    {  "Success": true}

Example - Create a subscription

  1. In theConfigure connector task dialog, clickEntities.
  2. SelectSubscriptions from theEntity list.
  3. Select theCreate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose theentityId orconnectorInputPayload as local variable.
    {  "LocationId": "LSHW80WV4KB06",  "CustomerId": "TE9VCZMC369HVA2RVBCEKTDQ6G",  "PlanId": "OEVRZUHD5C42W7VQUT22WURN",  "Ordinal": 0,  "OrderTemplateId": "d9ZVzcjiHVc2Ugd0bzlE7yZT9g4F"}

    If the integration is successful, theconnector task'sconnectorOutputPayload responseparameter will have a value similar to the following:

    {  "Id": "40da986b-08e4-45bf-9ba2-d11cf9f589fb"}

Example - Create a customer

  1. In theConfigure connector task dialog, clickEntities.
  2. SelectCustomers from theEntity list.
  3. Select theCreate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose theentityId orconnectorInputPayload as local variable.
    {  "FamilyName": "LastName",  "GivenName": "FirstName"}

    If the integration is successful, the connector task'sconnectorOutputPayload responseparameter will have a value similar to the following:

    {  "Id": "X8883DFR5M4AXGEKRSCFE3F2M9"}

Example - Create a gift card

  1. In theConfigure connector task dialog, clickEntities.
  2. SelectGiftCards from theEntity list.
  3. Select theCreate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose theentityId orconnectorInputPayload as local variable.
    {  "Type": "DIGITAL",  "LocationId": "LSHW80WV4KB06"}

    If the integration is successful, the connector task'sconnectorOutputPayload responseparameter will have a value similar to the following:

    {  "Id": "X8883DFR5M4AXGEKRSCFE3F2M0"}

Example - Update an invoice

  1. In theConfigure connector task dialog, clickEntities.
  2. SelectInvoices from theEntity list.
  3. Select theUpdate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose theentityId,connectorInputPayload, orfilterClause as local variable.
    {  "Title": "Invoice Update",  "Description": "Update Invoice",  "Version": 0}
  5. Set theentityId in Data Mapper to the entity of the Invoices.
  6. To set theentityId, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field 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'sconnectorOutputPayload output variable:

    { }

Example - Update a subscription

  1. In theConfigure connector task dialog, clickEntities.
  2. SelectSubscriptions from theEntity list.
  3. Select theUpdate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose theentityId,connectorInputPayload, orfilterClause as local variable.
    {  "Note": "Update Subscription"}
  5. Set theentityId in Data Mapper to the entity of the Subscriptions.
  6. To set theentityId, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field 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'sconnectorOutputPayload output variable:

    { }

Example - Update payout details

  1. In theConfigure connector task dialog, clickEntities.
  2. SelectPayOuts from theEntity list.
  3. Select theUpdate operation, and then clickDone.
  4. In theData Mapper section of theData Mapping task, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field and choose theentityId,connectorInputPayload, orfilterClause as local variable.
    {  "Version": 1,  "Description": "Update Payout"}
  5. Set theentityId in Data Mapper to the entity of the PayOuts.
  6. To set theentityId, clickOpen Data Mapping Editor and then enter a value similar to the following in theInput Value field 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'sconnectorOutputPayload output 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

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.