# One-Step Operations Workflow

#### One-Step Operations Workflow
The following procedure is for completing a one-step operation.
Authenticate<br>
Ensure a valid and current API token is available.
This is generated from the partner or merchant API key.
The API token is short-lived.
The API token may be generated anew for the endpoint call, can use an previously generated API token that is still valid, or is using the refresh token.
Submit a Payment Transaction<br>
Use the following endpoint to initiate or submit the payment transaction.
This endpoint combines authorization and capturing of a card transaction into one step.<br>
`POST {{baseURL}}/pay-api/v1/transactions/sale`.
This is an example of the return body, with the field `transactionId` noted.
This field references the transaction for subsequent endpoints, if needed.<br>

```json
{
...
  "transactionId": "69c71dd2-36c7-4b57-9467-3a03b171f741",
...
}
```
Automatic Processing<br>
Flute receives the payment data from the endpoint.
It routes the transaction to the processing center.
The processor communicates with the customer's bank for approval or denial.
It then relays the response back to the merchant site.
The client's app gets back the transaction result.
This includes whether it was approved or declined.
The app handles either case directly.

Version: V1
Security: Bearer
