Getting or Uploading an Image for a Collect Page
A Collect Page avatar can be retrieved or uploaded via these methods.
Method Info
| Url | https://www.payit2.com/api/v1/collect-page/{Id}/image |
|---|---|
| Verb | POST |
| Headers | X-PayItSquare-AppKey, X-PayItSquare-Token |
| {Id} | The id of the collect page. |
Input
| Property | Data Type | Validation Info |
|---|---|---|
| imageFile | File | Must be less than 4 MB |
Output
| Property | Data Type | Other Info |
|---|---|---|
| IsSuccess | Boolean | Indicates if the call was successful or not. |
| Messages | String Array | Will contain a list of error messages if IsSuccess is false |
Sample Success Response
{
"IsSuccess": true,
"Messages": []
}
Sample Error Response
{
"IsSuccess": false,
"Messages": [
"Error Message 1",
"Error Message 2"
]
}