Create Header

Post https://app.moneygraph.ai/api/v1/customer/invoice/header/create/{user}

Headers

Authorization* string

Pass your {api_key} as a bearer token in the request header to authorize this call

Path parameters

user* string

The onboarded customer ID or the MCP Key

Body parameters

country* string

Country must be in ISO2 format e.g US, NG

email*string

Email address to appear on the invoice header

phone*string

Phone number

company_name* string

The company name to appear on the invoice header. An invoice header is always tied to a company. You can only generate one invoice header per company..

state*string

State iso2

city*string

City

address*string

Invoice header address

postal_code*string

Postal/Zip Code

websitestring

The entity's website

image_url*string

URL of the logo to display on the invoice header.

image_size*integer

Size of the image as a percentage of its original dimensions. Accepted values: 10, 20, 30, 40, 50, 60, 70, 80, 90, or 100.

Response


{
    "message": "Invoice header added",
    "status": "success",
    "data": {
        "id": "cc496f0c-05ac-4a1e-bb9f-fb878278b5a9",
        "company": "MedLands Limited",
        "image_url": "https://cdn.pixabay.com/photo/2015/06/30/11/33/porsche-826385_1280.jpg",
        "mode": "test"
    }
}