# Google Standard Payments Payment Integrator Hosted Tokenized FOP API

This includes services hosted by Payment Integrators for Tokenized FOPs.

- [REST Resource: v2](https://developers.google.com/standard-payments/payment-integrator-tokenized-fop-api-v2#v2)
- [REST Resource: v2.payment-integrator-tokenized](https://developers.google.com/standard-payments/payment-integrator-tokenized-fop-api-v2#v2.payment-integrator-tokenized)

To call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

### Discovery document

A [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:

### Service endpoint

A [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

- `https://www.integratorhost.example.com`

| Methods ||
|---|---|
| `https://developers.google.com/standard-payments/payment-integrator-tokenized-fop-api-v2/v2/TopLevel/associateAccount` | `POST /v2/associateAccount` Associates the customer's account with the payment processor to the Google instrument being added. |
| `https://developers.google.com/standard-payments/payment-integrator-tokenized-fop-api-v2/v2/TopLevel/asynchronousRefund` | `POST /v2/asynchronousRefund` Refunds a portion or all of the entire transaction. |
| `https://developers.google.com/standard-payments/payment-integrator-tokenized-fop-api-v2/v2/TopLevel/authenticateIdentity` | `POST /v2/authenticateIdentity` Authenticates a user's account using data about the user's Google account and current context. |
| `https://developers.google.com/standard-payments/payment-integrator-tokenized-fop-api-v2/v2/TopLevel/cancelFundsReservation` | `POST /v2/cancelFundsReservation` Initiates canceling the funds that were reserved by a `reserveFunds` call. |
| `https://developers.google.com/standard-payments/payment-integrator-tokenized-fop-api-v2/v2/TopLevel/capture` | `POST /v2/capture` Initiates money movement between a customer's account held with Google and the payment processor. |
| `https://developers.google.com/standard-payments/payment-integrator-tokenized-fop-api-v2/v2/TopLevel/captureFundsReservation` | `POST /v2/captureFundsReservation` Initiates a capture of the funds reserved by a `reserveFunds` call. |
| `https://developers.google.com/standard-payments/payment-integrator-tokenized-fop-api-v2/v2/TopLevel/refund` | `POST /v2/refund` Refunds a portion of or the entire transaction initiated through `capture`. |
| `https://developers.google.com/standard-payments/payment-integrator-tokenized-fop-api-v2/v2/TopLevel/reserveFunds` | `POST /v2/reserveFunds` Reserve funds on a token. |
| `https://developers.google.com/standard-payments/payment-integrator-tokenized-fop-api-v2/v2/TopLevel/sendOtp` | `POST /v2/sendOtp` Requests the integrator send an OTP to the phone number. |
| `https://developers.google.com/standard-payments/payment-integrator-tokenized-fop-api-v2/v2/TopLevel/simulateSms` | `POST /v2/simulateSms` Simulates the sending of an SMS message to the payment integrator. |
| `https://developers.google.com/standard-payments/payment-integrator-tokenized-fop-api-v2/v2/TopLevel/verifyOtp` | `POST /v2/verifyOtp` Verifies an OTP value was sent by the integrator for the account. |

| Methods ||
|---|---|
| `https://developers.google.com/standard-payments/payment-integrator-tokenized-fop-api-v2/v2/payment-integrator-tokenized/cancelReferenceNumber` | `POST /v2/payment-integrator-tokenized/cancelReferenceNumber` Cancels a reference number by invalidating it in the integrators system and preventing future payments. |
| `https://developers.google.com/standard-payments/payment-integrator-tokenized-fop-api-v2/v2/payment-integrator-tokenized/generateReferenceNumber` | `POST /v2/payment-integrator-tokenized/generateReferenceNumber` Creates a reference number and registers payment information (description, timestamp) with the integrator. |