Skip to content

Credits from a transaction without reference

Request

POST {{baseURL}}/pay-api/v1/transactions/return/no-reference

This endpoint refunds or returns funds without a reference.

Without a reference means the customer does not have the link to the original transaction identifier. This creates a refund transaction that is not linked to a specific previous transaction. Instead of refunding a known transaction identifier, the system processes a standalone credit back to the cardholder's payment method.

The endpoint requires the administrative API permission: Ecommerce Refund Without Reference.

See Also:
To reverse a transaction, see POST /pay-api/v1/transactions/return.
To create a transaction, see POST /pay-api/v1/transactions/sale.
To retrieve a transaction by ID, see GET /pay-api/v1/transactions/{transactionId}.

Security
Bearer
Bodyapplication/json
cardDataSourceinteger, (int32)required

Specifies the card data source.

Valid values are:

ValueNameDescription
1InternetVirtual Terminal, ISV API
2SwipeTrack1, Track2
3NFCEMV Tags, Track2
4EMVEMV Tags
5EMVContactlessEMV Tags
6FallbackSwipeTrack 2
7ManualCard present keyed transaction

Example: 2

Example:2
currencyIdinteger, (int32)required

Specifies the Flute currency identifier.

The valid value is:

ValueMeaning
1USD

Example: 1

Example:1
debitbooleanrequired

Specifies the card as a debit card.

If true, the card as a debit card.
If false, the card as a credit card.

Example: true

Example:true
paymentProcessorIdstring, (uuid)required

Specifies the identifier assigned to the payment processor.

A list of available payment processers can be found with GET {{baseURL}}/pay-api/v1/configurations/payments. See response availablePaymentProcessors.id.

Example: 0c16d6e5-6157-42f0-a285-d14abbc54faa

Example:"0c16d6e5-6157-42f0-a285-d14abbc54faa"
customerIdstring or null, (uuid)

Specifies the customer identifier.

This is used when saving the payment method.
If this value is provided, the payment method is saved to the specified customer.
If this value is not provided, a new customer record is created.

Example: fd9198a4-eb6f-4620-9603-4f4638289de5

Example:"fd9198a4-eb6f-4620-9603-4f4638289de5"
amountnumber, (double)

The amount of the transaction (in USD).

Example: 25.99 (for $25.99)

Example:25.99
accountNumberstring or null

The 13-19 digit card number used for the transaction.

This field may contain a token issued against a card number. This is de-tokenized by TransIT to process the transaction.

Example: 5413591081013511

Example:"5413591081013511"
securityCodestring or null

The three or four digit security code on the credit card.

Example: 346

Example:346
expirationMonthinteger or null, (int32)

Specifies the expiration month of the card.

Example: 7

Example:7
expirationYearinteger or null, (int32)

Specifies the expiration year of the card.

Example: 2032

Example:2032
track1string or null, <= 79 characters

Specifies text for the magnetic track 1.

Example: %B4111111111111111^CHEN/MAYA^3012201000000000000000123000000?

Example:"%B4111111111111111^CHEN/MAYA^3012201000000000000000123000000?"
track2string or null

Specifies text for the magnetic track 2.

Example: ;4111111111111111=30122010000000000123?

Example:";4111111111111111=30122010000000000123?"
emvTagsArray of strings

Specifies data fetched from an EMV Chip credit/debit card to perform the transaction.

That is a string array of variable size and it should be used as is.

Example:

"emvTags":
{
"ac": "3F8A21C7D94E6B05",
"tvr": "0000008000",
"tsi": "E800",
"aid": "A0000000041010",
"applicationLabel": "MASTERCARD",
"rawTags":
[
  { "key": "9F26", "value": "3F8A21C7D94E6B05" },
  { "key": "95", "value": "0000008000" },
  { "key": "4F", "value": "A0000000041010" }
]
}
Example:
{ "example": { "ac": "3F8A21C7D94E6B05", "tvr": "0000008000", "tsi": "E800", "aid": "A0000000041010", "applicationLabel": "MASTERCARD", "rawTags": [ { "key": "9F26", "value": "3F8A21C7D94E6B05" }, { "key": "95", "value": "0000008000" }, { "key": "4F", "value": "A0000000041010" } ] } }
emvPaymentAppVersionstring or null

Indicates the version number of the EMV payment application (tag 9F09).

This value is a 2-byte hexadecimal string.

Example: 0096

Example:"0096"
billingAddressobject

Specifies an object defining the address.

shippingAddressobject

Specifies an object defining the address.

contactInfoobject

This group contains the customer's contact details.

pinstring or null

Specifies the encrypted PIN block captured by the terminal.

This value is an ISO 9564 PIN block encrypted with AES DUKPT. It is a 16-character hexadecimal string. The value is null when no PIN was entered.

Never plain PINs. The application should never show or ask for a PIN in plain text. PCI rules require the encrypted PIN block must not be stored after authorization.

Example: 8F3A1C9D2B7E4F60

Example:"8F3A1C9D2B7E4F60"
pinKsnstring or null

Specifies the key serial number (KSN) for the encrypted PIN block.

The processor uses this value to derive the key that decrypts encryptedPin. It is a 20-character hexadecimal string. The value is null when no PIN was entered.

This value is not a secret. The KSN can be sent with the request. It’s only useful together with the base key, which stays in the processor’s secure hardware.

Example: FFFF9876543210E00001

Example:"FFFF9876543210E00001"
emvFallbackConditioninteger, (int32)

Specifies the EMV fallback condition.

Valid values are:

ValueNameDescription
0ICCTerminalErrorThe chip could not be read because of a chip or terminal error. The card was swiped instead.
1NoCandidateListThe chip and the terminal have no payment application in common. The card was swiped instead.

Example: 1

Example:1
emvFallbackLastChipReadinteger, (int32)

Specifies the result of the last EMV chip read.

Valid values are:

ValueName
0Successful
1Failed
2NotAChipTransaction
3Unknown

Example: 1

Example:1
referenceIdstring or null

Specifies a reference identifier provided by the merchant.

This value links the transaction to a record in the merchant's own system, such as an order or invoice number. It is returned unchanged in the transaction response. Flute does not require it to be unique.

Example: ORDER-10527

Example:"ORDER-10527"

Returns $42.18 to a card with no original transaction. The card number is entered online, so cardDataSource is 1 (Internet).

POST /pay-api/v1/transactions/return/no-reference HTTP/1.1
Host: sandbox.api.flute.com
Authorization: Bearer <YOUR_JWT_HERE>
Accept: application/json
Content-Type: application/json

{
  "paymentProcessorId": "64aa4643-2c62-45fa-9554-3a69833114e9",
  "amount": 42.18,
  "currencyId": 1,
  "accountNumber": "4111111111111111",
  "securityCode": "123",
  "expirationMonth": 12,
  "expirationYear": 2030,
  "cardDataSource": 1,
  "billingAddress": {
    "line1": "7429 Desert Mirage Lane",
    "line2": "Suite 7",
    "city": "Phoenix",
    "stateName": "Arizona",
    "stateId": 4,
    "postalCode": "85099",
    "countryId": 1
  },
  "contactInfo": {
    "companyName": "Peppared Street Cafe",
    "firstName": "Greg",
    "lastName": "Black",
    "email": "greg.black@example.com",
    "mobilePhoneNumber": "+14155558787",
    "smsNotification": false
  },
  "debit": false,
  "referenceId": "RMA-20261020-0103"
}

Responses

OK

Bodyapplication/json
transactionIdstring, (uuid)

Identifies the transaction identifier.

Example: c7c15dd0-03e7-4e55-917c-54bedafba5e7

Example:"c7c15dd0-03e7-4e55-917c-54bedafba5e7"
transactionDateTimestring, (date-time)

Specifies the date and time (in an ISO 8601 date-time UTC format) of the transaction execution.

Examples: 2026-02-19T20:24:52.934Z

Example:"2026-02-19T20:24:52.934Z"
typeIdinteger, (int32)

Indicates the transaction type identifier.

The value depends on the endpoint.

Valid values are:

IdTypeDescription
1AuthorizationHolds funds on the card. The funds move only after a capture.
2SaleAuthorizes and captures the funds in one request.
7RefundWORefReturns funds to a card without a reference to an original transaction.

Example: 1

Example:1
typestring or null

Indicates the transaction type name.

The name matches the typeId value.

Valid values are:

TypeIdDescription
Authorization1Holds funds on the card. The funds move only after a capture.
Sale2Authorizes and captures the funds in one request.
RefundWORef7Returns funds to a card without a reference to an original transaction.

Example: Authorization

Example:"Authorization"
statusIdinteger, (int32)

Indicates the status identifier of the transaction.

Valid values are:

IdStatusDescription
1AuthorizedThe full amount is approved and held. It can be captured or voided.
2CapturedThe sale or return is approved. It is included in the next settlement batch.
7PartiallyAuthorizedOnly part of the amount is approved. processedAmount holds the approved amount.
91DeclinedThe issuer denied the transaction. No funds move.
92FailedThe transaction failed because of a processing error. No funds move.

Example: 1

Example:1
statusstring or null

Indicates the status name of the transaction.

The name matches the statusId value.

Valid values are:

StatusIdDescription
Authorized1The full amount is approved and held. It can be captured or voided.
Captured2The sale or return is approved. It is included in the next settlement batch.
PartiallyAuthorized7Only part of the amount is approved. processedAmount holds the approved amount.
Declined91The issuer denied the transaction. No funds move.
Failed92The transaction failed because of a processing error. No funds move.

Example: Authorized

Example:"Authorized"
detailsobject

Indicates additional processor-level response details for the transaction.

transactionReceiptobject or null


Indicates an object describing the transaction receipt. The transaction receipt will be null or empty before the transaction is completed. After the completed transaction, it will be filled out.

processedAmountnumber, (double)

Indicates which amount is authorized. The amount may differ from the amount in the request.

avsResponseobject

Indicates the Address Verification Service (AVS) response.

Response

Returns $42.18 to a Visa card keyed online.

The refund is approved, so status is Captured.

The address check passed, so avsResponse is populated.

{ "transactionId": "0f6b2d71-8c3e-4a95-b1d7-5e9a2c4f8b10", "transactionDateTime": "2026-10-20T14:12:07.5132846Z", "typeId": 7, "type": "RefundWORef", "statusId": 2, "status": "Captured", "details": { "hostResponseCode": "00", "hostResponseMessage": "APPROVAL", "hostResponseDefinition": "Approved and completed", "code": "Approve", "message": "Success", "processorResponseCode": "00", "authCode": "R41827", "maskedPan": "411111******1111" }, "transactionReceipt": { "transactionId": "0f6b2d71-8c3e-4a95-b1d7-5e9a2c4f8b10", "transactionDateTime": "2026-10-20T14:12:07.5132846Z", "amount": { "baseAmount": 42.18, "percentageOffAmount": 0, "percentageOffRate": 0, "cashDiscountAmount": 0, "cashDiscountRate": 0, "surchargeAmount": 0, "surchargeRate": 0, "tipAmount": 0, "tipRate": 0, "totalAmount": 42.18 }, "currencyId": 1, "currency": "USD", "processorId": "64aa4643-2c62-45fa-9554-3a69833114e9", "processor": "Primary card processor", "operationTypeId": 1, "operationType": "PayNow", "paymentMethodTypeId": 1, "paymentMethodType": "Card", "transactionTypeId": 7, "transactionType": "RefundWORef", "customerId": null, "customerPan": "411111******1111", "cardTokenType": 1, "statusId": 2, "status": "Captured", "merchantName": "Peppared Street Cafe", "merchantAddress": "7429 Desert Mirage Lane, Suite 7, Phoenix, AZ 85099", "merchantPhoneNumber": "+14155558787", "merchantEmailAddress": "billing@pepparedstreetcafe.example.com", "merchantWebsite": "https://pepparedstreetcafe.example.com", "authCode": "R41827", "source": { "typeId": 2, "type": "ApiToken", "id": "3c1f7a92-5d4e-4b8a-9f06-2e7d1b4c8a53", "name": "Store checkout API" }, "cardholderAuthenticationMethodId": 0, "cardholderAuthenticationMethod": "NotAuthenticated", "cvmResultMsg": null, "cardDataSourceId": 1, "cardDataSource": "Internet", "responseCode": "00", "responseDescription": "Approved and completed", "cardProcessingDetails": { "authCode": "R41827", "mid": "887000003193", "tid": "75021674", "cardCreditDebitTypeId": 1, "cardCreditDebitType": "Credit", "processCreditDebitTypeId": 1, "processCreditDebitType": "Credit", "rrn": "629314801127", "cardTypeId": 1, "cardType": "Visa" }, "achProcessingDetails": null, "availableOperations": [ { "typeId": 4, "type": "Void", "availableAmount": 42.18, "suggestedTips": null } ], "avsResponse": { "actionId": 1, "action": "Allow", "responseCode": "Y", "groupId": 5, "group": "ValidGroup", "resultId": 1, "result": "Passed", "codeDescription": "The street address and ZIP Code match the information on file." }, "emvTags": null, "orderNumber": "RMA-20261020-0103" }, "processedAmount": 42.18, "avsResponse": { "actionId": 1, "action": "Allow", "responseCode": "Y", "groupId": 5, "group": "ValidGroup", "resultId": 1, "result": "Passed", "codeDescription": "The street address and ZIP Code match the information on file." } }