<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0303</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2009-07-07</periodOfReport>

    <issuer>
        <issuerCik>0001323468</issuerCik>
        <issuerName>GLOBAL PARTNERS LP</issuerName>
        <issuerTradingSymbol>GLP</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001339396</rptOwnerCik>
            <rptOwnerName>Global GP LLC</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>800 SOUTH STREET</rptOwnerStreet1>
            <rptOwnerStreet2>SUITE 200</rptOwnerStreet2>
            <rptOwnerCity>WALTHAM</rptOwnerCity>
            <rptOwnerState>MA</rptOwnerState>
            <rptOwnerZipCode>02454-9161</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>1</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>1</isOther>
            <otherText>General Partner</otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common units representing limited partner interests</value>
            </securityTitle>
            <transactionDate>
                <value>2009-07-07</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>P</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
                <footnoteId id="F1"/>
                <footnoteId id="F4"/>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>7698</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>18.04</value>
                    <footnoteId id="F2"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>73758</value>
                    <footnoteId id="F1"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value></value>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common units representing limited partner interests</value>
            </securityTitle>
            <transactionDate>
                <value>2009-07-08</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>P</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
                <footnoteId id="F1"/>
                <footnoteId id="F4"/>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>10044</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>17.75</value>
                    <footnoteId id="F3"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>83802</value>
                    <footnoteId id="F1"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value></value>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">Global GP LLC is purchasing common units for the purpose of meeting its anticipated obligations to deliver common units under the Global Partners LP Long-Term Incentive Plan (&quot;LTIP&quot;) to officers, directors and employees, and meeting its obligations under existing employment agreements with the officers of Global GP LLC.  The reporting person disclaims any pecuniary interest in these securities, and this report shall not be deemed an admission that the reporting person is the beneficial owner of the securities for purposes of Section 16.</footnote>
        <footnote id="F2">The price reported in Column 4 is a weighted average price.  These common units were purchased in multiple transactions at prices ranging from $17.85 to $18.23, inclusive.  The reporting person undertakes to provide to Global Partners LP, any security holder of Global Partners LP, or the staff of the Securities and Exchange Commission, upon request, full information regarding the number of common units purchased at each separate price within the ranges set forth in footnotes (2) and (3) to this Form 4.</footnote>
        <footnote id="F3">The price reported in Column 4 is a weighted average price.  These common units were purchased in multiple transactions at prices ranging from $17.54 to $18.00, inclusive.</footnote>
        <footnote id="F4">The purchases reported on this Form 4 were effected pursuant to a Rule 10b5-1 trading plan adopted by the reporting person on June 24, 2009.</footnote>
    </footnotes>

    <remarks></remarks>

    <ownerSignature>
        <signatureName>Edward J. Faneuil, Attorney-in-Fact for Global GP LLC</signatureName>
        <signatureDate>2009-07-09</signatureDate>
    </ownerSignature>
</ownershipDocument>
