Applies to: Terminal API
Learn how to display a confirmation screen that captures a buyer's signature on the Square Terminal.
As part of creating custom workflows with the Terminal API, you can create a screen workflow that captures a buyer's signature as confirmation of the displayed information. You send a Terminal action request of the SIGNATURE type and the Square Terminal displays a screen where the buyer provides a signature for the seller's records. The buyer’s decision can be found in the Terminal action response when the Terminal action is in a COMPLETED state.
In the request body, you can edit the title and body text that displays on the signature confirmation screen. You can also edit the text that displays for the agree and disagree buttons.
The following animation shows how the Square Terminal displays the signature screen for the buyer.

- Send a Terminal action POST request using the CreateTerminalAction endpoint and specify the
SIGNATUREaction type. In thesignature_optionsbody, provide screen text fortitleandbody.
The Terminal action response includes an action_id and a PENDING status.
{ "action": { "id": "termapia:abcdefg1234567", "device_id": "R5WNWB5BKNG9R", "deadline_duration": "PT5M", "status": "PENDING", "created_at": "2022-03-09T09:01:19.622Z", "updated_at": "2022-03-09T09:03:06.830Z", "type": "SIGNATURE", "app_id": "sq0ids-abcdefg123456789", "signature_options": { "title": "Complete your pickup order", "body": "Please sign below.", } }
The Square Terminal displays the signature capture screen for the buyer.

After the buyer signs the form, the Terminal action is put in a COMPLETED state and the Square Terminal displays the idle screen.
- Send a GET request to see the Terminal action that includes the decision.
The response returns the signature image in the data field, as a PNG file encoded in base64.
{ "action": { "id": "termapia:Dw3eDfGPqIBublCE", "device_id": "R5WNWB5BKNG9R", "deadline_duration": "PT5M", "status": "COMPLETED", "created_at": "2022-03-09T12:17:55.353Z", "updated_at": "2022-03-09T12:17:56.091Z", "type": "SIGNATURE", "app_id": "sq0ids-abcdefg123456789", "signature_options": { "title": "Equipment Pick Up", "body": "Sign below to confirm your equipment pickup.", "signature": [ { "id": "John_Hancock_Signature.png", "image_type": "image/png;base64", "data": "iVBORw0KGgoAAAANSUhEUgAAAMcAAAA+BAMAAABtthIkAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADBQTF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