Created
July 21, 2017 20:29
-
-
Save tristansokol/86b4876062587f900c203e23acf16db3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"/v2/locations/{location_id}/transactions/{transaction_id}/refund": { | |
"post": { | |
"tags": [ | |
"Transactions" | |
], | |
"summary": "CreateRefund", | |
"operationId": "CreateRefund", | |
"description": "Initiates a refund for a previously charged tender.\n\nYou must issue a refund within 120 days of the associated payment. See\n(this article)[https://squareup.com/help/us/en/article/5060] for more information\non refund behavior.", | |
"x-oauthpermissions": [ | |
"PAYMENTS_WRITE" | |
], | |
"security": [ | |
{ | |
"oauth2": [ | |
"PAYMENTS_WRITE" | |
] | |
} | |
], | |
"parameters": [ | |
{ | |
"name": "location_id", | |
"description": "The ID of the original transaction\u0027s associated location.", | |
"type": "string", | |
"in": "path", | |
"required": true | |
}, | |
{ | |
"name": "transaction_id", | |
"description": "The ID of the original transaction that includes the tender to refund.", | |
"type": "string", | |
"in": "path", | |
"required": true | |
}, | |
{ | |
"name": "body", | |
"in": "body", | |
"required": true, | |
"description": "An object containing the fields to POST for the request.\n\nSee the corresponding object definition for field details.", | |
"schema": { | |
"$ref": "#/definitions/CreateRefundRequest" | |
} | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "Success", | |
"schema": { | |
"$ref": "#/definitions/CreateRefundResponse" | |
} | |
} | |
} | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment